Part Number Hot Search : 
LBS11508 MAU108 25V10 TC74LCX AA102 CG2300 AD530 LM455808
Product Description
Full Text Search
 

To Download WM8974 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  mono codec with speaker driver http://www.cirrus.com copyright ? cirrus logic, inc., 20 0 4 C 201 6 (all rights reserved) rev 4. 7 aug 1 6 wm 8974 description the wm 8974 is a low power, high quality mono codec designed for portable applications such as digital s till c amera or digital voice recorder . the device integrates sup port for a differential or single ended mic , and includes drivers for speaker s or headphone , and mono line output . external component requirements are reduced as no separate microphone or headphone amplifiers are required. advanced sigma delta converters are used along with digital decimation and interpo lation filters to give high quality audio at sample rates from 8 to 48ks/s . additional digital filtering options are available in the adc path, to cater for application filtering suc h as wind noise reduction, plus an advanced mixed signal alc function with noise gate is provided. the digital audio interface supports a - law and ? - law companding. an on - chip pll is provided to generate the required master clock from an external reference clock . the pll clock can also be output if required elsewhere in the system. the wm 8974 operates a t supply voltage s f rom 2.5 to 3.6 v, although the digital supplies can operate at voltages down to 1. 71v to save power. the speaker and mono outputs use a separate supply of up to 5v which enables increased output power if required. different sections of th e chip can also be powe red down under software control by way of the selectable two or three wire control interface. WM8974 is supplied in a very small 4x4 mm qfn package, offering high levels of functionality in minimum board area, with high thermal perfor mance. features mono codec : ? audio sample rates: 8, 11.0 25, 16, 22.05, 24, 32, 44.1, 48khz ? dac snr 9 8 db, thd - 84 db ( a - weighted @ 8 C 48ks/s ) ? adc snr 94 db, thd - 83 db (a - weighted @ 8 C 48ks/s) ? on - chip headphone /speaker driver with cap - less connect - 40mw output power into 16 ? / 3.3v spkvdd - btl speaker drive 0. 9 w into 8 ? / 5 v spkvdd ? additional mono line output ? multiple analog ue or aux input s, plus analog ue bypass path mic preamps : ? differential or single end microphone interface - programmable preamp gain - p s uedo - differential inputs with common mode rejection - programmable alc / noise gate in adc path ? low - noise bias supplied for electret microphones other features ? 5 band eq (record or playback path) ? digital playback limiter ? programmable adc high - pass filter ( w ind noise reduction ) ? programmable adc notch filter ? on - chip pll ? low power, low voltage - 2.5 v to 3.6v (digita l : 1. 71v to 3.6v) - power consumption < 10ma all - on 48ks/s mode ? 4 x 4 x0.9mm 24 lead qfn package a pplications ? digital still camera audio codec ? wireless voip and other communication handsets / headsets ? portable audio recorder ? general purpose low power audio codec c o n t r o l i n t e r f a c e c s b / g p i o s d i n s c l k m i c b i a s w m 8 9 7 4 d g n d a v d d a g n d v m i d 5 0 0 k 5 0 0 k i 2 s o r p c m i n t e r f a c e a - l a w a n d u - l a w s u p p o r t f r a m e a d c d a t a d c d a c d i g i t a l f i l t e r s v o l u m e 5 b a n d e q d i g i t a l l i m i t e r a d c d i g i t a l f i l t e r s v o l u m e 5 b a n d e q l i m i t e r / a l c w i n d n o i s e f i l t e r n o t c h f i l t e r d a c d a t p l l 5 0 k 5 0 k 4 k 5 k b y p a s s m c l k d b v d d s p k v d d s p k g n d b c l k s p k o u t p s p k o u t n d a c - 1 l - ( - r ) = l + r m o n o o u t a u x 2 0 k 2 0 k a n a l o g i n p u t s r b i a s m i c n o i s y g n d g a i n s : - 1 2 d b t o + 3 5 . 2 5 d b d c v d d m o d e m i c n m i c p i p p g a i p b o o s t / m i x s p k r p g a 0 d b , - 1 0 d b 0 d b , - 1 0 d b
WM8974 2 rev 4.7 table of contents description ................................ ................................ ................................ ....... 1 features ................................ ................................ ................................ ............ 1 applications ................................ ................................ ................................ ..... 1 table of contents ................................ ................................ ......................... 2 pin configuration ................................ ................................ .......................... 3 ordering information ................................ ................................ .................. 3 pin description ................................ ................................ ................................ 4 absolute maximum rat ings ................................ ................................ ........ 5 recommended operatin g conditions ................................ ..................... 5 electrical char acteristics ................................ ................................ ..... 6 terminology ................................ ................................ ................................ ............... 8 signal timing requir ements ................................ ................................ ...... 9 system clock timing ................................ ................................ ................................ 9 audio interface timi ng C master mode ................................ ............................ 9 aud io interface timing C slave mode ................................ .............................. 10 control interface ti ming C 3 - wire mode ................................ ....................... 11 control interface ti ming C 2 - wire mode ................................ ....................... 12 device description ................................ ................................ ...................... 13 i ntroduction ................................ ................................ ................................ ............ 13 input signal path ................................ ................................ ................................ .... 14 analogue to digital converter (adc) ................................ ............................ 19 input limiter / auto matic level control (alc) ................................ ............ 23 output signal path ................................ ................................ ................................ 35 analogue outputs ................................ ................................ ................................ . 42 output switch ................................ ................................ ................................ ......... 47 digital audio interf aces ................................ ................................ ..................... 49 audio sample rates ................................ ................................ ................................ 54 master clock and pha se locked loop (pll) ................................ ................. 55 general purpose inpu t/output ................................ ................................ ........ 57 control interface ................................ ................................ ................................ . 57 resetting the chip ................................ ................................ ................................ . 59 power supplies ................................ ................................ ................................ ....... 59 power management ................................ ................................ ............................... 63 register map ................................ ................................ ................................ .. 65 register bits by add ress ................................ ................................ .................... 66 digital filter chara cteristics ................................ .............................. 78 terminology ................................ ................................ ................................ ............. 78 dac filter responses ................................ ................................ ........................... 79 adc filter responses ................................ ................................ ........................... 79 de - emphasis filter resp onses ................................ ................................ .......... 80 high - pass filter ................................ ................................ ................................ ...... 81 5 - band equaliser ................................ ................................ ................................ ..... 82 applications informa tion ................................ ................................ ........ 86 recommended external components ................................ ............................ 86 package diagram ................................ ................................ ......................... 87 important notice ................................ ................................ ......................... 88 revision history ................................ ................................ ........................... 89
WM8974 rev 4.7 3 pin configuration ordering information order code temperature range package moisture sensitivity level package body temperature WM8974 c gefl/v - 40 ? c to +85 ? c 24 - lead qfn (4x4x0.9mm) (pb - free) msl3 260 o c WM8974 c gefl/rv - 40 ? c to +85 ? c 24 - lead qfn (4x4x0.9mm) (pb - free, tape and reel) msl3 260 o c note: reel quantity = 3,500 m c l k m o d e f r a m e b c l k d a c d a t a d c d a t 1 2 3 4 5 6 1 8 1 7 1 6 1 5 1 4 1 3 1 2 1 1 1 0 9 8 7 1 9 2 0 2 1 2 2 2 3 2 4 w m 8 9 7 4 ( t o p v i e w ) s p k o u t n v m i d s p k v d d a u x m i c n m i c p a v d d a g n d d g n d d c v d d d b v d d m i c b i a s s p k g n d m o n o o u t s c l k c s b / g p i o s d i n s p k o u t p
WM8974 4 rev 4.7 pin description pin no name type description 1 micbias analogue output microphone bias 2 avdd supply analogue supply (feeds adc and dac) 3 agnd supply analogue ground (feeds adc and dac) 4 dcvdd supply digital core supply 5 dbvdd supply digital buffer ( input / output ) supply 6 dgnd supply digital ground 7 adcdat digital output adc digital audio data output 8 dacdat digital input dac digital a udio data input 9 frame digital input / outp ut dac and adc sample rate clock or frame synch 10 bclk digital input / output digital audio port clock 11 mclk digital input master c lock input 12 csb/gpio digital input / output 3 - wire mpu chip select or general purpose input / output pin. 13 sclk digi tal input 3 - wire mpu clock input / 2 - wire mpu clock input 14 sdin digital input / output 3 - wire mpu data input / 2 - wire mpu data input 15 mode digital input control interface mode selection pin . 16 monoout analogue output mono output 17 spkoutp analog ue output speaker output positive 18 spkgnd supply speaker ground (feeds speaker and mono output amps only) 19 spkoutn analogue output speaker output negative 20 spkvdd supply speaker supply (feeds speaker and mono output amps only) 21 aux analogue inp ut auxiliary analogue input 22 vmid reference decoupling for midrail reference voltage 23 micn analogue input microphone negative input 24 micp analogue input microphone positive input (common mode) note: it is recommended that the qfn ground paddle s hould be connected to analogue ground on the application pcb.
WM8974 rev 4.7 5 absolute maximum rat ings absolute maximum ratings are stress ratings only. permanent damage to the device may be caused by continuously operating at or beyond these limits. device functional op erating limits and guaranteed performance specifications are given under electrical characteristics at the test conditions specified. esd sensitive device. this device is ma nufactured on a cmos process. it is therefore generically susceptible to damage from excessive static voltages. proper esd precautions must be taken during handling and storage of this device. cirrus logic tests its package types according to ipc/jedec j - std - 020b for moisture sensitivity to determine acceptable storage conditions prior to surface mount assembly. these levels are: msl1 = unlimited floor life at <30 ? ? ? condition min max dbvdd, dcvdd, avdd supply voltages - 0.3v + 4.2 spkvdd supply voltage - 0.3v + 7 v voltage range digital inputs dgnd - 0.3v dvdd +0.3v voltage range analogue inputs agnd - 0.3v avdd +0.3v operating temperature ra nge, t a - 40 ? ? ? ? ? notes : 1. analogue and digital grounds must always be within 0.3v of each other. 2. all digital and analogue supplies are complet ely independent from each other. recommended operatin g conditions parameter symbol min typ max unit digital supply range (core) dcv dd 1.71 3.6 v digital supply range (buffer) dbvdd 1.71 3.6 v analogue supplies range av dd 2.5 3.6 v speaker supply sp kvdd 2.5 5.5 v ground dgnd,agnd,spkgnd 0 v notes : 1. when using pll, dcvdd must be 1.9v or higher. 2. avdd must be ? dcvdd. 3. dbvdd must be ? dcvdd. 4. in non - boosted mode, spkvdd must be ? avdd, if boosted spkvdd must be ? 1.5x avdd. 5. when using pll, dcvdd must be ? 1.9v.
WM8974 6 rev 4.7 electrical character istics test conditions d c v dd = 1. 8 v , avdd = db vdd = 3.3 v, spkvdd = 3.3v, t a = +25 o c, 1khz signal, fs = 48khz, 24 - bit audio data unless otherwise stated. parameter symbol test conditions min typ max unit microphone inputs ( micn , micp ) ful l - scale input signal level (note 1) C note this changes with avdd v infs pgaboost = 0db inppgavol = 0db 1.0 0 vrms dbv mic pga equivalent input noise at 35.25 db gain 150 uv input resistance r micin gain set to 35.25db 1 .6 k ? input resistance r micin gain set to 0db 47 k ? input resistance r micin gain set to - 12db 75 k ? input resistance r mici p micp2inppga = 1 94 k ? input resistance r mici p micp2inppga = 0 94 k ? input capacitance c micin 10 pf mic input programmable ga in amplifier (pga) programmable gain - 12 35.25 db programmable gain step size guaranteed monotonic 0.75 db mute attenuation 108 db selectable input gain boost (0/+20db) gain boost 0 20 db automatic level control (alc)/limiter C adc only target record level - 28.5 - 6 db programmable gain - 12 35.25 db programmable gain step size guaranteed monotonic 0.75 db gain hold time (note 2 ) t hold mclk=12.288mhz (note 4 ) 0, 2.67, 5.33, 10.67, , 43691 (time doubles with each step) ms gai n ramp - up (decay) time (note 3 ) t dcy alcmode=0 (alc), mclk=12.288mhz (note 4 ) 3.3, 6.6, 13.1, , 3360 (time doubles with each step) ms alcmode=1 (limiter), mclk=12.288mhz (note 4 ) 0.73, 1.45, 2.91, , 744 (time doubles with each step) gain ramp - down (attack) time (note 3 ) t atk alcmode=0 (alc), mclk=12.288mhz (note 4 ) 0.83, 1.66, 3.33, , 852 (time doubles with each step) ms alcmode=1 (limiter), mclk=12.288mhz (note 4 ) 0.18, 0.36, 0.73, , 186 (time doubles with each step) analogue to digital c onverter (adc) signal to noise ratio (note 5 ) snr a - weighted, 0db pga gain 85 94 db total harmonic distortion (note 6 ) thd - 1 db fs input, 0db pga gain - 75 - 8 3 db auxiliary analogue input (aux) full - scale input signal level (0db) C note this changes wi th avdd v infs 1.0 0 vrms dbv input resistance r auxin auxmode=0 20 k ? input capacitance c auxin 10 pf
WM8974 rev 4.7 7 test conditions dcvdd = 1. 8 v, avdd = dbvdd = 3.3v, spkvdd = 3.3v, t a = +25 o c, 1khz s ignal, fs = 48khz, 24 - bit audio data unless otherwise stated . parameter symbol test conditions min typ max unit digital to analogue converter (dac) to mono output (all data measured with 10k ? signal to noise ratio (note 5 ) snr a - weighted 90 98 db total harmonic distortion + noise (note 6 ) thd +n r l = 10 k ? rms monoboost=1 1.5 x (avdd/3.3) speaker output pga programmable gain - 57 6 db programmable gain step size guaranteed mon o tonic 1 db btl speaker output ( spkoutp , spkoutn with 8 ? bridge tied load) output power p o output power is very closely correlated with thd; see below total harmonic distortion + noise (note 6) thd +n p o =180mw, r l = 8 ? o =400mw, r l = 8 ? o =360mw, r l = 8 ? o =800mw, r l = 8 ? l = 8 ? l = 8 ? headphone output ( spkoutp , spkoutn with resistive load to ground) signal to noise ratio snr 100 db total harmonic distortion + noise (note 6) thd +n po=20mw, r l = 16 ? l = 32 ? microphone bias bias voltage (mbvsel=0) v micbias 0.9 x avdd v bias voltage (mbvsel=1) v micbias 0.75 x avdd v bias current source i micbias 3 ma output noise voltage vn 1k to 20khz 15 nv/ ? digital input / output input high level v ih 0.7 ? il 0.3 ? oh i ol =1ma 0.9 ? ol i oh - 1ma 0.1 x dvdd v
WM8974 8 rev 4.7 terminology 1. micn input only in single ended microphone configuration. maximum input signal to micp without d istortion is - 3dbv. 2. hold time is the length of time between a signal detected being too quiet and beginning to ramp up the gain. it does not apply to ramping down the gain when the signal is too loud, which happens without a delay. 3. ramp - up and ramp - down ti mes are defined as the time it takes for the pga to change it s gain by 6db . 4. all hold, ramp - up and ramp - down times scale proportionally with mclk 5. signal - to - noise ratio (db) C snr is a measure of the difference in level between the full scale output and the output with no signal applied. (no auto - zero or automute function is employed in achieving these results). 6. thd+n (db) C thd+n is a ratio, of the rms values, of (noise + distortion)/signal. 7. the maximum output voltage can be limited by the speaker power sup ply. if monoboost=1 then spkvdd should be 1.5xavdd or higher to prevent clipping taking place in the output stage.
WM8974 rev 4.7 9 s ignal t iming r equirements s ystem c lock t iming figure 1 system clock timing requirements test conditions dcvdd = 1. 8 v , dbvdd=avdd=spkvdd=3.3v, dgnd= agnd= spkgnd= 0v, t a = +25 o c parameter symbol conditions min typ max unit system clock timing information mclk cycle time t mclky mclk as direct sysclk source (clksel=0) 81.38 ns mclk as input t o pll (see note) ( clksel=1 ) 20 ns mclk duty cycle t mclkds 60:40 40:60 note: pll pre - scaling and pll n and k values should be set appropriately so that sysclk is no greater than 12.288mhz. a udio interface timing C m aster m ode figure 2 digital audio data timing C master mode (see control interface) test conditions dcvdd= 1. 8 v , dbvdd=avdd=spkvdd=3.3v, dgnd=agnd =spkgnd =0v, t a =+25 o c, master mode, fs=48khz, mclk=256fs, 24 - bit data, unless otherwise sta ted. parameter symbol min typ max unit audio data input timing information frame propagation delay from bclk falling edge t dl 10 ns adcdat propagation delay from bclk f alling edge t dda 10 ns dacdat setup time to bclk r ising edge t dst 10 ns dacdat hold time from bclk rising edge t dht 10 ns note: bclk period should always be greater than mclk period. mclk t mclkl t mclkh t mclky b c l k ( o u t p u t ) a d c d a t f r a m e ( o u t p u t ) t d l d a c d a t t d d a t d h t t d s t
WM8974 10 rev 4.7 a udio i nterface t iming C slave m ode figure 3 digital audio data timing C slave mode tes t conditions dcvdd= 1. 8 v , dbvdd=avdd =spkvdd=3.3v, dgnd=agnd= spkgnd =0v, t a =+25 o c, slave mode, fs= 48khz, mclk= 256fs, 24 - bit data, unless otherwise stated. parameter symbol min typ max unit audio data input timing information bclk cycle time t bcy 160 ns bclk pulse width high t bch 64 ns bclk pulse width low t bcl 64 ns frame set - up time to bclk rising edge t lrsu 10 ns frame hold time from bclk rising edge t lrh 10 ns dacdat hold time from bclk rising edge t dh 10 ns dacdat set - up time to b clk rising edge t ds 10 ns adcdat propagation delay from bclk falling edge t dd 2 0 ns b c l k f r a m e t b c h t b c l t b c y d a c d a t a d c d a t t l r s u t d s t l r h t d h t d d
WM8974 rev 4.7 11 control i nterface t iming C 3 - wire m ode figure 4 control interface timing C 3 - wire serial control mode test con ditions dcvdd = 1. 8 v , dbvdd = avdd = spkvdd = 3.3v, dgnd = agnd = spk gnd = 0v, t a = +25 o c, slave mode, fs = 48khz, mclk = 256fs, 24 - bit data, unless otherwise stated. parameter symbol min typ max unit program register input information sclk rising edge to csb rising edge t scs 80 ns sclk pulse cycle time t scy 200 ns sclk pulse width low t scl 80 ns sclk pulse width high t sch 80 ns sdin to sclk set - up time t dsu 40 ns sclk to sdin hold time t dho 40 ns csb pulse width low t csl 40 ns csb p ulse width high t csh 40 ns csb rising to sclk rising t css 40 ns pulse width of spikes that will be suppressed t ps 0 5 ns c s b / g p i o s c l k s d i n t c s l t d h o t d s u t c s h t s c y t s c h t s c l t s c s l s b t c s s
WM8974 12 rev 4.7 control i nterface t iming C 2 - wire m ode figure 5 control interface timing C 2 - wire serial control mode test conditions dcvdd= 1.8 v , dbvdd=avdd=spkvdd=3.3v, dgnd=agnd =spkgnd =0v, t a = +25 o c, slave mode, fs = 48khz, mclk = 256fs, 24 - bit data, unless otherwise stated. parameter symbol min typ max unit program register input information sclk frequency 0 526 khz sclk low pulse - width t 1 1.3 us sclk high pulse - width t 2 600 ns hold time (start condition) t 3 600 ns setup time (start condition) t 4 600 ns data setup time t 5 100 ns sdin, sclk rise time t 6 300 ns sdin, sclk fall time t 7 300 n s setup time (stop condition) t 8 600 ns data hold time t 9 900 ns pulse width of spikes that will be suppressed t ps 0 5 ns sdin sclk t 3 t 1 t 6 t 2 t 7 t 5 t 4 t 3 t 8 t 9
WM8974 rev 4.7 13 d evice d escription i ntroduction the wm 8974 is a low power audio codec combining a high quality mono audio dac and adc , with flexible line and microphone input and output processing . applications for this device include digital still cameras with mono audio , re co rd and playback capability , voice recorders , wireless voip headsets and games console accessories . the chip offers gre at flexibility in use, and so can support many different modes of operation as follows: microphone inputs two microphone inputs are provided, allowing for either a differential microphone input or a single ended microphone to be connected. these inputs ha ve a use r programmable gain range of - 12db to +35.25 db using internal resistors . after the input pga stage comes a boost stage which can add a further 20db of gain. a microphone bias is output from the chip which can be used to bias the microphones. the signal routing can be configured to allow manual adjustment of mic levels, or to allow the alc loop to control the level of mic signal that is transmitted. t otal gain through the microphone paths of up to + 55.25 db can be selected. pga and alc operatio n a p rogrammable gain amplifier is provided in the input path to the adc. this may be used manually or in conjunction with a mixed analog ue /digital automatic level control (alc) which keeps the recording volu me constant. aux input the device includes a mono in put, aux, that can be used as an input for warning tones ( beep ) etc. the output from this circuit can be summed into the mono output and /or the speaker output paths, so allowing for mixing of audio with backing music etc ., as required. this path can als o be summed into the input in a flexible fashio n , either to the input pga as a second microphone input or as a line input. the configuration of this circuit , with integrated on - chip resistors allows several analogue signals to be summed into the single aux input if required. adc the mono adc uses a multi - bit high - order oversampling architecture to deliver optimum performance with low power consumption. various sample rates are supported, from the 8ks/s rate typically used in voice dictation , up to the 48ks/ s rate used in high quality audio applications. hi - fi dac the hi - fi dac provides high quality audio playback suitable for all portable mono audio type applications . digital filtering advanced sigma delta converters are used along with digital decimation an d interpolation filters to give high quality audio at sample rates from 8 ks/s to 48ks/s. application specific digital filters are also available which help to re duce the effect of specific noise sources such as wind noise . the filters include a program mable adc high - pass filter, a programmable adc notch filter and a 5 - band equaliser that can be applied to ei ther the adc or the dac path in order to improve the overall audio sound from the device. output mixing and vo lume adjust flexible mixing is provide d on the outputs of the device; a mixer is provided for the speaker outputs, and an additional mono summer for the mono output . these mixers allow the output of the dac, the output of the adc volume control and the auxiliary input to be combined. the out put volume can be adjusted using the integrated digital volume control and there is additional analogue gain adjustment capability on the speaker output. audio interfaces the wm 8974 has a standard audio interface, to support the transmission of audio data to and from the chip. this interface is a 4 wire standard audio interface which supports a number of audio data
WM8974 14 rev 4.7 formats including i 2 s, dsp mode, msb - first, left justified and msb - first, right justified, and can oper ate in master or slave modes. control int erfaces to allow full software control over all its features, the wm 8974 offers a choice of 2 or 3 wire mpu control interface. it is fully compatible and an ideal partner for a wide range of industry standard microprocessors, controllers and dsps . the sele ction between 2 - wire mode and 3 - wire mode is determined by the state of the mode pin . if mode is high then 3 - wire control mode is selected, if mode is low then 2 - wire control mode is selected . i n 2 wire mode, only slave operation is supported, and the a ddress of the device is fixed as 0011010 . clocking schemes wm 8974 offers the normal audio dac clock ing scheme operation, where 256fs mclk is provided to the dac /adc . however, a pll is also included which may be used to generate the internal master clock f requency in the event that this is not available from the system controller. th e pll uses an input reference ( typically , the 12mhz usb clock ) to generate high quality audio clocks. if th e pll is not required for generation of these clocks, it can be reconf igured to generate alternative clocks which may then be output on the csb /gpio pin and used elsewhere in the system. power control the design of the wm 8974 has given much attention to power consumption without compromising performance. it operates at low s upply voltages, and includes the facility to power off any unused parts of the circuitry under software control, includes standby and power off modes. input signal path the WM8974 has 3 flexible analogue inputs: two microphone inputs, and an auxiliary inp ut . these inputs can be used in a variety of ways. the input signal path before the adc has a flexible pga block which then feeds into a gain boost/mixer stage. microphone inputs the WM8974 can accommodate a variety of microphone configurations includi n g single ended and differential inputs. the inputs through the micn, micp and optionally aux pins are amplified through the input pga as shown in figure 6 . a pseudo differential input is the preferential configuration where the p ositive terminal of the input pga is connected to the micp input pin by setting micp2inppga=1. the microphone ground should then be connected to micn (when micn2inppga=1) or optionally to aux (when aux2inppga=1) input pins. alternatively a single ended mi crophone can be connected to the micn input with micn2inppga set to 1. the non - inverting terminal of the input pga should be connected internally to vmid by setting micp2inppga to 0. in differential mode the l arger signal should be input to micp and the s malle r (e.g. noisy ground connection ) should be input to micn.
WM8974 rev 4.7 15 figure 6 microphone input pga circuit (switch positions shown are for differential mic input) register address bit label default descript ion r44 input control 0 micp2inppga 1 connect input pga amplifier positive terminal to micp or vmid. 0 = input pga amplifier posi tive terminal connected to vmid 1 = input pga amplifier positive terminal connected to micp through variable resist or string 1 micn2inppga 1 connect micn to input pga negative terminal . 0=micn not connected to input pga 1=micn connected to input pga amplifier negative terminal. 2 aux2inppga 0 select aux amplifier output as input pga signal source. 0=aux not connected to inpu t pga 1=aux connected to input pga amplifier negative terminal. the input pga is enabled by the ippgaen register bit . register address bit label default description r2 power management 2 2 inppga en 0 input microphone pga enable 0 = disabled 1 = enabled o u t p u t f r o m a u x a m p m i c p m i c n v m i d a u x 2 i n p p g a r 4 4 [ 2 ] m i c n 2 i n p p g a r 4 4 [ 1 ] m i c p 2 i n p p g a r 4 4 [ 0 ] t o i n p u t b o o s t / m i x s t a g e i n p p g a v o l r 4 5 [ 5 : 0 ] g a i n = - 1 2 t o + 3 5 . 2 5 d b
WM8974 16 rev 4.7 input pga volume control the input microphone pga has a gain range from - 12db to +35.25db in 0.75db steps . the gain from the micn input to the pga output and from the aux amplifier to the pga output are always common and controlled by the register bits inppgavol[5:0]. these register bits also a ffect the micp pin when micp2inppga =1. when the automatic level control (alc) is enabled t he input pga gain is then controlled automatically and the inppgavol bits should not be used. register address bit label default description r45 input pga volume control 5:0 inppga vol 010000 input pga volume 000000 = - 12db 000001 = - 11.25db . 010000 = 0db . 111111 = 35.25db 6 inppgamute 0 mute control for input pga: 0=input pga not muted, normal operation 1=input pga mut ed (and disconnected from the following input boost stage). 7 inppga zc 0 input pga zero cross enable: 0=update gain when gain register changes 1=update gain on 1 st zero cross after gain register write. r 3 2 alc control 1 8 alcsel 0 alc function select: 0 =alc off (pga gain set by inp p gavol register bits) 1=alc on (alc controls pga gain) table 1 input pga volume control auxiliary input an auxiliary input circuit ( figure 7 ) is provided which consists of an a mplifier which can be configured either as an inverting buffer for a single input signal or as a mixer/summer for multiple inputs with the use of external resistors. the ci rcuit is enabled by the register bit auxen . figure 7 auxiliary i nput c ircuit the auxmode register bit controls the auxil i ary input mode of operation: i n buffer mode (auxmode=0) the switch labelled auxsw in figure 7 is open and the signal at the aux pin wil l be buffered and inverted through the aux circuit using only the internal components. - + v m i d a u x 2 0 k 2 0 k a u x s w c l o s e d w h e n s u m m i n g m u l t i p l e i n p u t s t o i n p p g a , i n p b o o s t o r o u t p u t m i x e r s a u x m o d e r 4 4 [ 3 ] a u x s w a u x o p
WM8974 rev 4.7 17 in mixer mode (auxmode=1) the on - chip input resistor is bypassed, this allows the user to sum in mult iple inputs with the use of external resistors. when used in this m ode there will be gain variations through this pat h from part to part due to the variation of the internal 20k ? resistors relative to the higher tolerance external resistors . register address bit label default description r 1 power management 1 6 auxen 0 auxiliary input buffer enable 0 = off 1 = on r 4 4 input control 3 auxmode 0 0 = inverting buffer 1 = mixer ( on - chip input resistor bypassed) table 2 auxiliary i nput b uffer c ontrol input boost the input boost circuit has 3 selectable inputs: the input microphone pga output , the aux amplifier output and the micp input pin (when not using a differential microphone configuration). these three inputs can be mixed together and have individual gain boost/adjust as shown in figure 8 . figure 8 input boost stage the input pga path can h ave a +20db boost (pgaboost=1) a 0db pass through (pgaboost=0) or be completely isolated from the input boost circuit (inppgamute=1). register address bit label default description r 45 input pga gain control 6 inppgamute 0 mute contr ol for input pga: 0=input pga not muted, normal operation 1=input pga muted (and disconnected from the following input boost stage). r47 input boost control 8 pgaboost 0 0 = pga output has +0db gain through input boost stage. 1 = pga output has +20db ga in through input boost stage. table 3 input boost s tage c ontrol t o a d c i n p u t a n d o u t p u t m i x e r s a u x 2 b o o s t v o l = 0 0 0 m i c p 2 b o o s t v o l = 0 0 0 o u t p u t f r o m a u x a m p o u t p u t f r o m i n p u t p g a m i c p a u x 2 b o o s t v o l r 4 7 [ 2 : 0 ] m i c p 2 b o o s t v o l r 4 7 [ 6 : 4 ] i n p p g a m u t e r 4 5 [ 6 ] p g a b o o s t r 4 7 [ 8 ] - 1 2 d b t o + 6 d b - 1 2 d b t o + 6 d b 0 d b o r + 2 0 d b
WM8974 18 rev 4.7 the auxiliary amplifier path to the boost stage is controlled by the aux2boost vol [2:0] register bits. when aux2boost vol =000 this path is completely disconnected fro m the boost stage. settings 001 through to 111 control the gain in 3db steps from - 12db to +6db. the micp path to the boost stage is controlled by the micp2boost vol [2:0] register bits. when micp2boost vol =000 this input pin is completely disconnected from the boost stage. settings 001 through to 111 control the gain in 3db steps from - 12db to +6db. register address bit label default description r47 input boost control 2:0 aux2boostvol 000 controls the auxiliary amplif i er to the input boost stage: 000=pat h disabled (disconnected) 001= - 12db gain through boost stage 010= - 9db gain through boost stage table 4 input boost s tage c ontrol the boost stage is enabled under control of the boosten register bit. register address bit label default description r2 power management 2 4 boosten 0 input boost enable 0 = boost stage off 1 = boost stage on table 5 input boost e nable c ontrol microphone biasing c ircuit the micbias output pr ovides a low noise reference voltage suitable for biasing electret type microphones and the associated external resistor biasing network. refer to the applications information section for recommended external components. the micbias voltage can be altered via the mbvsel register bit. if mbvsel = 0, the micbias voltage is 0.9 x avd d . if mbvsel = 1, the micbias voltage is 0.75 x avdd. the output can be enabled or disabled using micb en. register address bit label default description r1 power management 1 4 micb en 0 microphone bias enable 0 = off (high impedance output) 1 = on table 6 microphone bias enable register address bit label default description r44 input control 8 mbvsel 0 microphone bias voltage control 0 = 0.9 x avd d 1 = 0.75 x avdd table 7 microphone bias voltage control
WM8974 rev 4.7 19 the internal micbias circuitry is shown in figure 9 . note that the maximum source current capability for micbias is 3ma. the external biasin g resistors therefore must be large enough to limit the micbias current to 3ma. figure 9 microphone bias schematic a nalogue t o d igital c onverter ( adc ) the WM8974 uses a m ulti - bit, oversampled sigma - delta adc channel. the use of multi - bit feedback and high oversampling rates reduces the effects of jitter and high frequency noise. the adc full scale input level is proportional to avdd. with a 3.3v supply voltage, the full sc ale level is 1.0 v rms . any voltage greater than full scale may overload the adc and cause distortion. adc digital filter s the adc filters perform true 24 bit signal processing to convert the raw multi - bit oversampled data from the adc to the correct sampli ng frequency to be output on the digital audio interface. the digit al filter path is illustrated in figure 10 . figure 10 adc digital filter path a g n d m b v s e l = 0 m i c b i a s = 1 . 8 x v m i d = 0 . 9 x a v d d v m i d i n t e r n a l r e s i s t o r i n t e r n a l r e s i s t o r m b m b v s e l = 1 m i c b i a s = 1 . 5 x v m i d = 0 . 7 5 x a v d d a d c d i g i t a l d e c i m a t o r d i g i t a l f i l t e r s g a i n 5 - b a n d e q u a l i s e r h i g h p a s s f i l t e r n o t c h f i l t e r d i g i t a l a u d i o i n t e r f a c e a d c d i g i t a l f i l t e r s
WM8974 20 rev 4.7 the adc is ena bled by the a dcen register bit. register address bit label default description r2 power management 2 0 adcen 0 0 = adc disabled 1 = adc enabled table 8 adc enable the polarity of the output signal can also be changed under software control u sing the adcpol register bit . the oversampling rate of the adc can be adjusted using the adcosr register bit. with adcosr=0 the oversample rate is 64x which gives lowest power operation and when adcosr=1 the oversample rate is 128x which gives best perf ormance. register address bit label default description r14 adc control 3 adcosr 0 adc oversample rate select: 0=64 x (lower power) 1=128 x (best performance) 0 adcpol 0 0=normal 1=inverted table 9 adc oversample rate select s electable high - pass filter a selectable high - pass filter is provided. to disable this filter set hpfen=0 . th e filter has two modes controlled by hpfapp . in audio mode (hpfapp=0) the filter is first order, with a cut - off frequency of 3.7hz. in application mode (hpfapp=1) the filter is second order, with a cut - off frequency selectable via the hpfcut register. the cut - off f requencies when hpfapp=1 are shown in table 11 . register address bit label default description r14 adc control 8 hpfen 1 high - pass filter enable 0=disabled 1=enabled 7 hpfapp 0 select audio mode or application mode 0=audio mode (1 st order, fc = ~3.7hz) 1=application mode (2 nd order, fc = hpfcut) 6:4 hpfcut 0 00 application mode cut - off frequency see table 11 for details. table 10 adc filter select
WM8974 rev 4.7 21 hpfcut fs (khz) sr=101/100 sr=011/010 sr=001/000 8 11.025 12 16 22.05 24 32 44.1 48 000 82 113 122 82 113 122 82 113 122 001 102 141 153 102 141 153 102 141 1 53 010 131 180 196 131 180 196 131 180 196 011 163 225 245 163 225 245 163 225 245 100 204 281 306 204 281 306 204 281 306 101 261 360 392 261 360 392 261 360 392 110 327 450 490 327 450 490 327 450 490 111 408 563 612 408 563 612 408 563 612 table 11 high - pass filter cut - off frequencies (hpfapp=1) note that the high - pass filter values (when hpfapp=1) work on the basis that the sr register bits are set correctly for the actual sample rate as shown in table 11 . programmable notch f ilter a programmable notch filter is provided. this filter has a variable centre frequency and bandwidth, programmable via two coefficients, a0 and a1. these coefficients should be converted to 2s complement numbers to dete rmine the register values. a 0 and a1 are represented by the register bits nfa0[13:0] and nfa1[13:0]. because these coefficient values require four register writes to setup there is an nfu (notch filter update) flag which should be set only when all four r egisters are setup. register address bit label default description r27 notch filter 1 6:0 nfa0[13:7 ] 0 notch filter a0 coefficient, b its [13:7 ] 7 nfen 0 notch filter enable: 0=disabled 1=enabled 8 nfu 0 notch filter update. the notch filter values us ed internally only update when one of the nfu bits is set high. r28 notch filter 2 6:0 nfa0 [6:0] 0 notch filter a0 coefficient, bits [ 6:0 ] 8 nfu ] 0 notch filter update. the notch filter values used internally only update when one of the nfu bits is se t high. r29 notch filter 3 6:0 nfa1[13:7 ] 0 notch filter a1 coefficient, bits [13:7 ] 8 nfu 0 notch filter update. the notch filter values used internally only update when one of the nfu bits is set high. r30 notch filter 4 6:0 nfa1[6:0 ] 0 notch f ilt er a1 coefficient, bits [6:0 ] 8 nfu 0 notch filter update. the notch filter values used internally only update when one of the nfu bits is set high. table 12 notch filter function
WM8974 22 rev 4.7 the coefficients are calculated as follows: w here : f c = centre frequency in hz, f b = - 3db bandwidth in hz, f s = sample frequency in hz the coefficients are calculated as follows: nfa0 = - a0 x 2 13 nfa1 = - a1 x 2 12 these values are then converted to 2s compl e ment notation to determine the register values. notch filter worked example the following example illustrates how to calculate the a0 and a1 coefficients for a desired centre frequency and - 3db bandw idth. f c = 1000 hz fb = 100 hz fs = 48000 hz = x (1000 / 48000) = 0.1308996939 rads = x (100 / 48000) = 0.01308996939 rads = = 0.9869949627 = = - 1.969995945 nfn_a0 = - a0 x 213 = - 8085 (rounded to nearest whole number) nfn_a1 = - a1 x 212 = 8069 (rounded to nearest whole number) these values are then converted to 2s compl e ment: nfa0 = 14h206b = 14b10000001101011 nfa1 = 14h1f85 = 14b 01111110000101 ) 2 / tan( 1 ) 2 / tan( 1 0 b b w w a ? ? ? ) cos( ) 1 ( 0 0 1 w a a ? ? ? s c f f w / 2 0 ? ? s b b f f w / 2 ? ? s c 0 f / f 2 w ? ? ? 2 s b b f / f 2 w ? ? ? 2 ) 2 / w tan( 1 ) 2 / w tan( 1 a b b 0 ? ? ? ) 2 / 9 0130899693 . 0 tan( 1 ) 2 / 9 0130899693 . 0 tan( 1 ? ? ) w cos( ) a 1 ( a 0 0 1 ? ? ? ) 1308996939 . 0 cos( ) 9869949627 . 0 1 ( ? ?
WM8974 rev 4.7 23 digital adc volume c ontrol the output of the adcs can be digitally attenuated over a rang e from C 127db to 0db in 0.5db steps. the gain for a given eight - bit code x is given by: gain = 0.5 x ( x C 255) db for 1 ? x ? 255, mute for x = 0 register address bit label default description r15 adc digital volume 7:0 adcvol [7:0] 11 1111 11 ( 0db ) adc dig ital volume control 0000 0000 = digital mute 0000 0001 = - 127db 0000 0010 = - 126.5db table 13 adc volume input limiter / auto matic level control (alc) the wm 8974 has an automatic pga gain contr ol circuit, which can function as an input peak limiter or as an automatic level control (alc). the automatic level control (alc) provides continuous adjustment of the input pga in response to the amplitude of the input signal. a digital peak detector m onitors the input signal amplitude and compares it to a register def ined threshold level (alclvl). if the signal is below the threshold, the alc will increase the gain of the pga at a rate set by alcdcy. if the signal is above the threshold, the alc will reduce the gain of the pga at a rate set by alcatk. the alc has two modes selected by the alcmode register: normal mode and peak limiter mode. the alc/limiter function is enabled by setting the register bit r32[8] alcsel. register address bit label defaul t description r32 (20h) alc control 1 2:0 alcmin [2:0] 000 ( - 12db) set minimum gain of pga 000 = - 12db 001 = - 6db 010 = 0db 011 = +6db 100 = +12db 101 = +18db 110 = +24db 111 = +30db 5:3 alcmax [2:0] 111 (+35.25db) set maximum gain of pga 111 = +35.25db 110 = +29.25db 101 = +23.25db 100 = +17.25db 011 = +11.25db 010 = +5.25db 001 = - 0.75db 000 = - 6.75db 8 alcsel 0 alc function select 0 = alc disabled 1 = alc enabled
WM8974 24 rev 4.7 register address bit label defaul t description r33 (21h) alc control 2 3:0 alclvl [3:0] 1011 ( - 12db) alc target C sets signal level a t adc input 1111 = - 6dbfs 1110 = - 7.5dbfs 1101 = - 9dbfs 1100 = - 10.5dbfs 1011 = - 12dbfs 1010 = - 13.5dbfs 1001 = - 15dbfs 1000 = - 16.5dbfs 0111 = - 18dbfs 0110 = - 19.5dbfs 0101 = - 21dbfs 0100 = - 22.5dbfs 0011 = - 24dbfs 0010 = - 25.5dbfs 0001 = - 27dbfs 0000 = - 28.5dbfs 8 alczc 0 (zero cross off) alc uses zero cross detection circuit. 0 = disabled (recommended) 1 = enabled 7:4 alchld [3:0] 0000 (0ms) alc hold time before gain is increased. 0000 = 0ms 0001 = 2.67ms 0010 = 5.33ms 0011 = 10.66ms 0100 = 21.32ms 0101 = 42.64ms 0110 = 85.28ms 0111 = 0.17s 1000 = 0.34s 1001 = 0.68s 1010 or higher = 1.36s r34 (22h) alc control 3 8 alcmode 0 determines the alc mode of operation: 0 = alc mode (normal operation) 1 = limiter mode. 7:4 alcdcy [3:0] 0011 (26ms/6db) deca y (gain ramp - up) time (alcmode ==0) per step per 6db 90% of range 0000 410us 3.38ms 23.6ms 0001 820us 6.56ms 47.2ms 0010 1.64ms 13.1ms 94.5ms (time doubles with every step) 1010 or higher 420ms 3.36s 24.2s
WM8974 rev 4.7 25 register address bit label defaul t description 0011 (5.8ms/6db) decay (gain ramp - u p) time (alcmode ==1) per step per 6db 90% of range 0000 90.8us 726us 5.23ms 0001 182us 1.45ms 10.5ms 0010 363us 2.91ms 20.9ms (time doubles with every step) 3:0 alcatk [3:0] 0010 (3.3ms/6db) alc attack (gain ramp - down) t ime (alcmode == 0) per step per 6db 90% of range 0000 104us 832us 6ms 0001 208us 1.66ms 12ms 0010 416us 3.33ms 24ms (time doubles with every step) 0010 (726us/6db) alc attack (gain ramp - down) time (alcmode = = 1) per step per 6db 90% of range 0000 22.7us 182.4us 1.31ms 0001 45.4us 363us 2.62ms 0010 90.8us 726us 5.23ms (time doubles with every step) table 14 alc control registers when the al c is disabled, the input pga remains at the last controlled value of the alc. an input gain update must be made by writing to the inppgavoll/r register bits.
WM8974 26 rev 4.7 normal mode in normal mode, the alc will attempt to maintain a constant signal level by increasin g or decreasing the gain of the pga. the following diagram shows an example of this. figure 11 alc normal mode operation i n p u t s i g n a l a l c s e l p g a g a i n a l c l v l t a t k t d c y o u t p u t o f p g a v s t e p
WM8974 rev 4.7 27 limiter mode in limiter mode, the alc will reduce peaks that go above the thre shold level, but will not increase the pga gain beyond the starting level. the starting level is the pga gain setting when the alc is enabled in limiter mode. if the alc is started in limiter mode, this is the gain setting of the pga at start - up. if the alc is switched into limiter mode after running in alc mode, the starting gain will be the gain at switchover. the diagram below shows an example of limiter mode. figure 12 alc limiter mode operation attack and decay tim es the attack and decay times set the update times for the pga gain. the attack time is the time constant used when the gain is reducing. the decay time is the time constant used when the gain is increasing. in limiter mode, the ti me constants are faster than in alc mode. the time constants are shown below in terms of a single gain step, a change of 6db and a change of 90% of the pgas gain range. note that, these times will vary slightly depending on the sample rate used (specified by the sr register). i n p u t s i g n a l a l c s e l p g a g a i n a l c l v l t a t k l i m t d c y l i m o u t p u t o f p g a v s t e p
WM8974 28 rev 4.7 normal mode table 15 alc normal mode (attack and decay times) limiter mode alcmode = 0 (normal mode) alcatk t atk t atk6db t atk90% 0000 104s 832s 6ms 0001 208s 1.66ms 12ms 0010 416s 3.33ms 24ms 0011 832s 6.66ms 48ms 0100 1.66ms 13.3ms 96ms 0101 3.33ms 26.6ms 192ms 0110 6.66ms 53.2ms 384ms 0111 13.3ms 106ms 767ms 1000 26.6ms 213.2ms 1.53s 1001 53.2ms 426ms 3.07s 1010 106ms 852ms 6.13s attack time (s) alcmode = 0 (normal mode) alcdcy t dcy t dcy6db t dcy90% 0000 410s 3.28ms 23.6ms 0001 820s 6.56ms 47.2ms 0010 1.64ms 13.1ms 94.5ms 0011 3.28ms 26.2ms 189ms 0100 6.56ms 52.5ms 378ms 0101 13.1ms 105ms 756ms 0110 26.2ms 210ms 1.51s 0111 52.5ms 420ms 3.02s 1000 105ms 840ms 6.05s 1001 210ms 1.68s 12.1s 1010 420ms 3.36s 24.2s decay time (s) alcmode = 1 (limiter mode) alcatk t atklim t atklim6db t atklim90% 0000 22.7s 182s 1.31ms 0001 45.4s 363s 2.62ms 0010 90.8s 726s 5.23ms 0011 182s 1.45ms 10.5ms 0100 363s 2.91ms 20.9ms 0101 726s 5.81ms 41.8ms 0110 1.45ms 11.6ms 83.7ms 0111 2.9ms 23.2ms 167ms 1000 5.81ms 46.5ms 335ms 1001 11.6ms 93ms 669ms 1010 23.2ms 186ms 1.34s attack time (s)
WM8974 rev 4.7 29 table 16 alc limiter mode (attack and decay times) minimum and maximum gain the alcmin and alcmax register bits set the minimum/maximum gain value that the pga can be set to whilst under the control of the alc. this has no effect on the pga when alc is not enabled. register address bit label default description r32 alc control 1 5:3 alcmax 111 set maximum gain of pga 2:0 alcmin 000 set minimum gain of pga table 17 alc max/min gain in normal mode, alcmax sets the maximum bo ost which can be applied to the signal. in limiter mode, alcmax will normally have no effect (assuming the starting gain value is less than the maximum gain specified by alcmax) because the maximum gain is set at the starting gain level. alcmin sets the m inimum gain value whic h can be applied to the signal. figure 13 alc min/max gain alcmode = 1 (limiter mode) alcdcy t dcylim t dcylim6db t dcylim90% 0000 90.8s 726s 5.23ms 0001 182s 1.45ms 10.5ms 0010 363s 2.91ms 20.9ms 0011 726s 5.81ms 41.8ms 0100 1.45ms 11.6ms 83.7ms 0101 2.91ms 23.2ms 167ms 0110 5.81ms 46.5ms 335ms 0111 11.6ms 93ms 669ms 1000 23.2ms 186ms 1.34s 1001 46.5ms 372ms 2.68s 1010 93ms 744ms 5.36s attack time (s) p g a g a i n = 0 0 0 0 0 0 ( - 1 2 d b ) p g a g a i n = 1 1 1 1 1 1 ( + 3 5 . 2 5 d b ) a l c m a x a l c m i n a l c o p e r a t i n g r a n g e w h o l e p g a g a i n r a n g e
WM8974 30 rev 4.7 table 18 alc max gain values table 19 alc min gain values note that if the alc gain setting strays outside the alc operating range, either by starting the alc outside of the range or changing the alcmax or alcmin settings during operation, the alc will immediately adju st the gain to return to the alc operating range. it is recommended that the alc starting gain is set between the alcmax and alcmin limits. alc hold time (norma l mode only) in normal mode, the alc has an adjustable hold time which sets a time delay befor e the alc begins its decay phase (gain increasing). the hold time is set by the alchld register. register address bit label default description r33 alc control 2 7:4 alchld 0000 alc hold time before gain is increased. table 20 alc hold time if the hold time is exceeded this indicates that the signal has reached a new average level and the alc will increase the gain to adjust for that new average level. if the signal goes above the threshold during the hold period, the hold p hase is abandoned and the alc returns to normal operation. alcmax maximum gain (db) 111 35.25 110 29.25 101 23.25 100 17.25 011 11.25 010 5.25 001 -0.75 000 -6.75 alcmin minimum gain (db) 000 -12 001 -6 010 0 011 6 100 12 101 18 110 24 111 30
WM8974 rev 4.7 31 figure 14 alclvl i n p u t s i g n a l o u t p u t o f p g a a l c l v l p g a g a i n
WM8974 32 rev 4.7 figure 15 alc hold time table 21 alc hold time values i n p u t s i g n a l o u t p u t o f p g a a l c l v l p g a g a i n t h o l d alchld t hold (s) 0000 0 0001 2.67ms 0010 5.34ms 0011 10.7ms 0100 21.4ms 0101 42.7ms 0110 85.4ms 0111 171ms 1000 342ms 1001 684ms 1010 1.37s
WM8974 rev 4.7 33 peak limiter to prevent clipping when a large signal occurs just after a period of quiet, the alc circuit includes a limiter function. if the adc input signal exceeds 87.5% of full scale ( C 1.16db), the pga gain is ra mped down at the maximum attack rate (as when alcatk = 0000), until the signal level falls below 87.5% of full scale. this function is automatically enabled whenever the alc is enabled. note: if alcatk = 0000, then the limiter makes no difference to the op eration of the alc. it is designed to prevent clipping when long attack times are used. noise gate (normal m ode only) when the signal is very quiet and consists mainly of noise, the alc function may cause noise pumping, i.e. loud hissing noise during si lence periods. the wm 8974 has a noise gate function that prevents noise pumping by comparing the signal level at the input pins against a noise gate threshold, ngth. the noise gate cuts in when: signal level at adc [dbfs] < ngth [dbfs] + pga gain [db] + mi c boost gain [db] this is equivalent to: signal level at input pin [dbfs] < ngth [dbfs] the pga gain is then held constant (preventing it from ramping up as it normally would when the signal is quiet). the table below summarises the noise gate control reg ister. the ngth control bits set the noise gate threshold with respect to the adc full - scale range. the threshold is adjusted in 6db steps. levels at the extremes of the range may cause inappropriate operation, so care should be taken with set C up of the f unction. the noise gate only operates in conjunction with the alc and cannot be used in limiter mode. register address bit label default description r35 (23h) alc noise gate control 2:0 ngth 000 noise gate threshold: 000 = - 39db 001 = - 45db 010 = - 51db 0 11 = - 57db 100 = - 63db 101 = - 69db 110 = - 75db 111 = - 81db 3 ngaten 0 noise gate function enable 1 = enable 0 = disable table 22 alc noise gate control the diagrams below show the response of the system to the same signal with and without noise gate.
WM8974 34 rev 4.7 figure 16 alc operation a bove noise gate threshold i n p u t s i g n a l o u t p u t o f p g a a l c l v l p g a g a i n
WM8974 rev 4.7 35 figure 17 noise gate operation output signal path the WM8974 output s ignal paths cons ist of digital appli cation filters, up - sampl ing filters, a hi - fi dac, analogue mix ers, speaker and mono output drive rs. the digital filters and dac are enabled by bit dacen . the mixers and output drivers can be separately enabled by individ ual control bits (see analogue outputs). thus it is possible to utilise the analogue mixing and amplification provided by the WM8974, irrespective of whether the dacs are running or not. the WM8974 dac receives digital input data on the dacdat pin. the dig ital filter block processes the data to provide the following functions: ? digital volume control ? graphic equaliser ? a digital peak limiter. ? sigma - delta modulation the h igh pe rformance sigma - delta audio dac convert s the digital da ta into an analogue signal . i n p u t s i g n a l o u t p u t o f p g a a l c l v l p g a g a i n n g t h
WM8974 36 rev 4.7 figure 18 dac digital filter path the analogue output from the dac can then be mixed with the aux analogue input and the adc analogue input . the mix is fed to the output drivers, spkoutp /n , and mono out . monoout : can drive a 16 ? or 32 ? headphone or line output or can be a buffered version of vmid (when monomute=1). spkoutp /n : can drive a 16 ? or 32 ? stereo headphone or stereo line output, or an 8 ? btl mono speaker. digital hi - fi dac volume contro l the signal volume from each h i - f i dac can be controlled digitally. the gain and attenuation range is C 127db to 0db in 0.5db steps. the level of attenuation for an eight - bit code x is given by: 0.5 ? (x - 255) db for 1 ? x ? 255; mute for x = 0 register address bit label default description r11 dac digital volume 7:0 dacvol [7:0] 11111111 ( 0db ) dac digital volume control 0000 0000 = digital mute 0000 0001 = - 127db 0000 0010 = - 126.5db ... 0.5db steps up to 1111 1111 = 0db table 23 d ac volume hi - fi digital to analog ue converter (dac) after passing through the graph ic equaliser filters, digital de - emphasis can be applied to the audio data if necessary (e.g. when the data comes from a cd with pre - emphasis used in the recording). de - e mphasis filtering is available for sample rates of 48khz, 44.1khz and 32khz. register address bit label default description r10 dac control 5:4 deemph 00 de - emphasis control 00 = no de - emphasis 01 = 32khz sample rate 10 = 44.1khz sample rate 11 = 48khz s ample rate table 24 de - emphasis d i g i t a l a u d i o i n t e r f a c e d i g i t a l g a i n 5 - b a n d e q u a l i s e r d i g i t a l f i l t e r s i n t e r p s d m d a c d e - e m p h a s i s d i g i t a l p e a k l i m i t e r d a c d i g i t a l f i l t e r s
WM8974 rev 4.7 37 the dac is ena bled by the dacen register bit. register address bit label default description r3 power management 3 0 dacen 0 dac enable 0 = dac disabled 1 = dac enabled table 25 dac enable the WM8974 also has a soft mute function, which gradually attenuates the volume of the digital signal to zero. when removed, the gain will ramp back up to the digital gain setting. this function is enabled by default. to play back an au dio signal, it must first be disabled by setting the dacmu bit to zero. register address bit label default description r10 dac control 6 dacmu 0 dac s oft mute enable 0 = dacmu disabled 1 = dacmu enabled table 26 dac c ontrol r egis ter the digital audio data is converted to oversampled bit streams in the on - chip, true 24 - bit digital interpolation filters. the bit stream data enters a multi - bit, sigma - delta dac, which converts it to a high quality analogue audio signal. the multi - bit dac architecture reduces high frequency noise and sensitivity to clock jitter. the dac output defaults to non - inverted. setting dacpol will invert the dac output phase. automute the dac has an automute function which applie s an analogue mute when 1024 c onsecutive zeros are detected. the mute is release as soon as a non - zero sample is detected. automute can be di s abled using the amute control bit . register address bit label default description r10 dac control 2 amute 0 dac auto mute enable 0 = auto mute dis abled 1 = auto mute en abled table 27 dac auto m ute control register dac output limiter the WM8974 has a digital output limiter function. the operation of this is shown in figure 19 . in this diagram th e upper graph shows the envelope of the input/output signals and the lower graph shows the gain characteristic.
WM8974 38 rev 4.7 figure 19 dac digital limiter operation the limiter has a programmable upper threshold which is close to 0db. referring to table 28 , in normal operation (limboost=000 => limit only) signals below this threshold are unaffected by the limiter. signals above the upper threshold are attenuated at a specific attack rat e (set by the limatk register bits) until the signal falls below the threshold. the limiter also has a lower threshold 1db below the upper threshold. when the signal falls below the lower threshold the signal is amplified at a specific decay rate (contro lled by limdcy register bits) until a gain of 0db is reached. both threshold levels are controlled by the limlvl register bits. the upper threshold is 0.5db above the value programmed by limlvl and the lower threshold is 0.5db below the limlvl value. vo lume boost the limiter has programmable upper gain which boosts signals below the threshold to compress the dynamic range of the signal and increase its perceived loudness. this operates as an alc function with limited boost capability. the volume boost is from 0db to +12db in 1db steps, controlled by the limboost register bits. the output limiter volume boost can also be used as a stand - alone digital gain boost wh en the limiter is disabled. u p p e r t h r e s h o l d l o w e r t h r e s h o l d l i m l v l i n p u t o u t p u t 0 d b - 0 . 5 d b - 1 d b g a i n 0 . 5 d b 0 . 5 d b
WM8974 rev 4.7 39 register address bit label default description r24 dac digital limiter control 1 3:0 limatk 0010 limiter attack time (per 6db gain change) for 44.1khz sampling. note that these will scale with sample rate. 0000=94 us 0001=188 s 0010=375 us 0011=750u s 0100=1.5 ms 0101=3 ms 0110=6 ms 0111=12 ms 1000=24 ms 1001=48 ms 1010=96 ms 1011 to 1111= 192ms 7: 4 limdcy 0011 limiter decay time (per 6db gain change) for 44.1khz sampling. note that these will scale with sample rate : 000 0=750u s 0001=1.5ms 0010=3 ms 0011=6 ms 0100=1 2 ms 0101=24 ms 0110=48 ms 0111=96 ms 1000=192 ms 1001=384 ms 1010=76 8m s 1011 to 1111=1.536 s 8 limen 0 enable the dac digital limiter: 0=disabled 1=enabled r25 dac digital limiter control 2 3:0 limboost 0000 limiter volume boost (can be used as a stand - alone volume boost when limen=0) : 0000=0db 0001=+1db 0010=+2db table 28 dac digital limiter c ontrol
WM8974 40 rev 4.7 graphic equaliser a 5 - band graphic eq is provided, which can be applied to the adc or dac path under control of the eqmode register bit . register address bit label default description r 18 eq control 1 8 eqmode 1 0 = equal iser applied to adc path 1 = equaliser applied to dac path table 29 eq dac or adc p ath s elect the equaliser consists of low and high frequency shelving filters (band 1 and 5) and three peak filters for the centre bands. each has adjustable cut - off or centre frequency, and selectable boost (+/ - 12db in 1db steps). the peak filters have selectable bandwidth. register address bit label default description r18 eq band 1 control 4:0 eq1g 01100 (0db) band 1 gain control. see table 35 for details. 6:5 eq1c 01 band 1 cut - off frequency: 00=80hz 01=105hz 10=135hz 11=175hz table 30 eq band 1 control register address bit label default description r19 eq band 2 control 4:0 eq2g 01100 (0db) band 2 gain control. see table 35 for details. 6:5 eq2c 01 band 2 centre frequency: 00=230hz 01=300hz 10=385hz 11=500hz 8 eq2bw 0 band 2 bandwidth control 0=narrow bandwidth 1=wide bandwidth table 31 eq band 2 control register address bit label default description r20 eq band 3 control 4:0 eq3g 01100 (0db) band 3 gain control. see table 35 for details. 6:5 eq3c 01 band 3 centre frequency: 00=650hz 01=850hz 10=1.1k hz 11=1.4khz 8 eq3bw 0 band 3 bandwidth control 0=narrow bandwidth 1=wide bandwidth table 32 eq band 3 control
WM8974 rev 4.7 41 register address bit label default description r21 eq band 4 control 4:0 eq4g 01100 (0db) band 4 gain control. se e table 35 for details 6:5 eq4c 01 band 4 centre frequency: 00=1.8khz 01=2.4khz 10=3.2khz 11=4.1khz 8 eq4bw 0 band 4 bandwidth control 0=narrow bandwidth 1=wide bandwidth table 33 eq band 4 control register address bit label default description r22 eq band 5 gain control 4:0 eq5 g 01100 (0db) band 5 gain control. see table 35 for details. 6:5 eq5 c 01 band 5 cut - off frequency: 00=5.3khz 01=6.9khz 10=9khz 11=11.7khz table 34 eq band 5 control gain register gain 00000 +12db 00001 +11db 00010 +10db . (1db steps) 01100 0db 01101 - 1db 11000 - 12db 11001 to 11111 reserved table 35 gain register table
WM8974 42 rev 4.7 analogue outputs t he WM8974 has a single mono output and two outputs spkoutp and spoutn for driving a mono btl speaker . thes e analogue output stages are supplied from spkvdd and are capable of driving up to 1.5v rms signals (equivalent to 3v rms into a bridge tied speaker) as shown in figure 20 . figure 20 speaker and mono analogue outputs the mono and speaker outputs have output driving stages which can be controlled by the register bits monobo ost and spkboost respectively . each output stage has a selectable gain boost of 1.5x. when this boost is enabled the output dc level is also level shifted (from avdd/2 to 1.5xavdd/2) to prevent the signal from clipping. a dedicated amplifier, as shown i n figure 20 , is used to perform the dc level shift operation. this buffer must be enabled using the bufdcopen register bit for this operating mode. it should also be noted t hat if spkvdd is not equal to or greate r than 1.5x avdd th is boost mode may result in signals clipping. table 37 summarises the effect of the spkboost /monoboost control bits. s p k o u t n s p k o u t p v s p k r s p e a k e r m i x e r - 1 s p k r v d d s p k g n d s p k b o o s t r 4 9 [ 2 ] s p k v o l r 5 4 [ 5 : 0 ] s p k b o o s t 0 1 g a i n 1 x 1 . 5 x d c o u t p u t 1 x ( a v d d / 2 ) 1 . 5 x ( a v d d / 2 ) s p k v d d s p k r g n d m o n o b o o s t r 4 9 [ 3 ] m o n o b o o s t 0 1 g a i n 1 x 1 . 5 x d c o u t p u t 1 x ( a v d d / 2 ) 1 . 5 x ( a v d d / 2 ) m o n o m i x e r m o n o o u t = l - ( - r ) = l + r 1 . 5 x a v d d / 2 + - 0 . 5 r r s e t s d c l e v e l o n o u t p u t s t a g e s t h a t a r e c o n f i g u r e d f o r 1 . 5 x g a i n b o o s t . b u f d c o p e n r 1 [ 8 ] a v d d / 2
WM8974 rev 4.7 43 register address bit label default description r49 output control 2 spkboost 0 speaker output boost stage contro l (see table 37 for details) 0=no boost (outputs are inverting buffers) 1 = 1.5x gain boost 3 monoboost 0 mono output boost stage control (see table 37 for details) 0=no boost (output is inverting buffer ) 1=1.5x gain boost r1 power management 1 8 bufdcopen 0 dedicated buffer for dc level shifting output stages when in 1.5x gain boost configuration. 0=buffer disabled 1=buffer enabled (required for 1.5x gain boost) table 36 output boost control spk boost/ monoboost output stage gain output dc level output stage configuration 0 1x avdd/2 inverting 1 1.5x 1.5xavdd/2 non - inverting table 37 output boost stage details spkoutp / spkoutn outputs the spkout pins c an drive a singl e bridge tied 8 ? speaker or two headphone loads of 16 ? or 32 ? or a line output (see headphone output and line output sections, respectively). the sign al to be output on skpkout comes from the speaker mixer circuit and can be any combination of the dac output, the bypass path ( output of the boost stage) and the aux input. the spkoutp /n volume is controlled by the spkvol register bits . note that gains over 0db may cause clipping if the signal is large. the spkmute register bit causes the spe aker outputs to be muted ( the output dc level is driven out). the output pin s remains at the same dc level ( vmidop ), so that no click noise is produced when muting or un - muting. the spkoutn pin always drives out an inverted version of the spkoutp signal. register address bit label default description r50 speaker mixer control 0 dac2 spk 1 output of dac to speaker mixer input 0 = not selected 1 = selected 1 byp 2 spk 0 bypass path (output of input boost stage) to speaker mixer input 0 = not selected 1 = sel ected 5 aux2 spk 0 output of auxiliary amplifier to speaker mixer input 0 = not selected 1 = selected r40 bypass path attenuation control 1 spkattn 0 attenuation control for bypass path (output of input boost stage) to speaker mixer input 0 = 0db 1 = - 10 db table 38 speaker m ixer c ontrol
WM8974 44 rev 4.7 register address bit label default description r 5 4 speaker volume c ontrol 7 spk zc 0 speaker volume control zero cross enable : 1 = change gain on zero cross only 0 = change gain immediately 6 sp kmute 0 speaker output mute enable 0=speaker output enabled 1=speaker output muted (vmidop) 5 :0 spkvol [5 :0] 111001 (0db) speaker volume adjust 111111 = +6db 111110 = +5db (1.0 db steps) 111001=0db 000000= - 57 db table 39 spk out volume control zero cross timeout a zero - cross timeout function is also provided so that if zero cross is enabled on the input or output pgas the gain will automatically update after a timeout period if a zero cross has not occurred. this is enabled b y setting slowclken . the timeout period is dependent on the clock input to the digital and is equal to 2 21 * input clock period. register address bit label default description r7 additional c ontrol 0 slowclken 0 slow clock enable . used for both the jack insert detect de - bounce circuit and the zero cross timeout. 0 = slow clock disabled 1 = slow clock enabled table 40 timeout c lock e nable c ontrol mono mixer and output the monoout pin can drive a 16 ? or 32 ? headphone or a line ou tput or be used as a dc reference for a headphone output (see headphone output section). it can be selected to drive out any combination of dac, bypass (output of inp ut boost stage) and aux . this outpu t i s enabled by setting bit mono en . register address b it label default description r56 mono m ixer c ontrol 0 dac2mono 0 output of dac to mono mixer input 0 = not selected 1 = selected 1 byp2mono 0 bypass path (output of input boost stage) to mono mixer input 0 = non selected 1 = selected 2 aux2mono 0 outp ut of auxi li ary amplifier to mono mixer input: 0 = not selected 1 = selected
WM8974 rev 4.7 45 register address b it label default description 6 monomute 0 0=no mute 1=output muted. during mute the mono output will output vmid which can be used as a dc reference for a headphone out. r40 bypass path attenuation contro l 2 monoattn 0 attenuation control for bypass path (output of input boost stage) to mono mixer input 0 = 0db 1 = - 10db table 41 mono m ixer c ontrol enabling the outputs each analogue output of the WM8974 can be separately enabled or disabled. the analogue mixer associated with each output has a separate enable. all outputs are disabled by default. to save power, unused parts of the WM8974 should remain disabled. outputs can be enabled at any time, but it is not recommended to do so when bufio is disabled ( bufioen=0 ), as this may cause pop noise (see power management and applications information sections) . register address bit label default description r1 power management 1 2 bufioen 0 unused input/output tie off buffer enable 8 bufdcopen 0 output stage 1.5xavdd/2 driver enable 3 biasen 0 analogue amplifiers bias enable r3 power m anagement 3 2 spkmixen 0 speaker mixer enable 3 monomixen 0 mono mixer enable 5 spkpen 0 spkoutp enable 6 spknen 0 spkoutn enable 7 monoen 0 monoout enable note: all enable bits are 1 = on, 0 = off table 42 output s tages p ower m anagement c ontrol unused analogue inpu ts/outputs whenever an analogue input/output is disabled, it remains connected to a voltage source ( either avdd/2 or 1.5xavdd/2 as appropriate) through a resistor. this helps to prevent pop noise when the output is re - enabled. the resistance between the voltage buffer and the output pins can be controlled using the vroi cont r ol bit. the default impedanc e is low, so that any capacitors on the outputs can charge up quickly at start - up. if a high impedance is desired for disabled outputs, vroi can then be set to 1, increasing the resistance to about 30k ? . register address bit label default description r49 0 vroi 0 vref (avdd/2 or 1.5xavdd/2) to analogue output resistance 0: approx 1k ? ? table 43 disabled outputs to vref resistance
WM8974 46 rev 4.7 a dedicated buffer is available for t y ing off unused analogue i/o pins as shown in figure 21 . this buffer can be enabled using the bufioen register bit. if the spkboost or monoboost bits are set then the relevant outputs will be tied to the output of the dc level shift buffer at 1.5xavdd/2 when disabled. table 44 summarises the tie - off options for the speaker and mono output pins. figure 21 unused input/output pin tie - off b uffers monoen/ spkn/pen monoboost/ spkboost vroi output configurat ion 0 0 0 1k ? ? ? ? table 44 unused ou tput pin tie - off options a v d d / 2 - + 1 . 5 x a v d d / 2 + - 0 . 5 r r a v d d / 2 u s e d t o s e t d c l e v e l o n o u t p u t s t a g e s t h a t a r e c o n f i g u r e d f o r 1 . 5 x g a i n b o o s t . u s e d t o t i e o f f a l l u n u s e d i n p u t s a n d o u t p u t s ( e x c e p t t h o s e c o n f i g u r e d f o r 1 . 5 x g a i n b o o s t ) . b u f i o e n r 1 [ 2 ] b u f d c o p e n r 1 [ 8 ] 1 k m i c n 1 k m i c p 1 k a u x s p k o u t p s p k o u t n m o n o o u t 1 k 3 0 k v r o i r 4 9 [ 0 ] 1 k 3 0 k v r o i r 4 9 [ 0 ] 1 k 3 0 k v r o i r 4 9 [ 0 ]
WM8974 rev 4.7 47 o utput switch when the device is configured with a 2 - wire interface the csb /gpio pin can be used as a switch control input to automatically disable the speaker output s and enable the mono output . for example when a line is plugge d into a jack socket. in this mode, enabled by setting gpiosel=001 , pin csb/gpio switches between mono and s peaker outputs (e.g. when pin 12 is connected to a mechanical switch in the headphone soc ket to detect plug - in). the gpiopol bit reverses the polari ty of the csb/gpio input pin . note that the speaker outputs and the mono output must be enabled for this function to work (see table 45 ). the csb/gpio pin has an internal de - bounce circuit when in this mode in order to prevent the output enables from toggling multiple times due to input glitches. this de - bounce circuit is clocked from a slow clock with period 2 21 x mclk, enabled using the slowclken register bit. gpiopol csb/gpio spknen/ spkpen monoen speaker enabled mono output e nabled 0 0 x 0 no no 0 0 x 1 no yes 0 1 0 x no no 0 1 1 x yes no 1 0 x 0 no no 1 0 x 1 no yes 1 1 0 x no no 1 1 1 x yes no table 45 output s witch o peration (gpiosel=001) thermal shutdown t he speaker outputs can drive very large currents. to protect the WM8974 from overheating a thermal shutdown circuit is included. the thermal shutdown can be configured to produce an interrupt when the device reaches approximately 125 o c. see general purpose input/output section. register address bit label default description r49 output c ontrol 1 tsden 1 thermal shutdown enable 0 : thermal shutdown disabled 1 : thermal shutdown enabled table 46 thermal shutdown speaker output spkoutp /n can differentially drive a m ono 8 ? bridge tied load (btl) speaker as shown below. figure 22 speaker output connection s p k o u t n s p k o u t p w m 8 9 7 4 v s p k r = l - ( - r ) = l + r - 1 s p e a k e r m i x e r s p k v o l s p k b o o s t
WM8974 48 rev 4.7 headphone output the speaker outputs can drive a 16 ? or 32 ? headphone load, either through dc blocking capacit ors, or dc coupled without any capacitor. headphone output using dc b locking c apacitors : dc coupled headphone output : figure 23 recommended headphone output configurati ons when dc blocking capacitors are used, then their capacitance and the load resistance together determine the lower cut - off frequency, f c . increasing the capacitance lowers f c , improving the bass response. smaller capacitance values will diminish the ba ss response. assuming a 16 ? load and c1, c2 = 220 ? f: f c = 1 / 2 ? r l c 1 = 1 / (2 ? x 16 ? x 220 ? f) = 45 hz in the dc coupled configuration, the headphone ground is connected to the monoout pin. the monoout pin can be configured as a dc output driver by set ting the monomute register bit. the dc voltage on monoout in this configuration is equal to the dc offset on the sproutp and spkoutn pins therefore no dc blocking capacitors are required. this saves space and material cost in portable applications. it is recomm e nded to connect the dc coupled outputs only to headphones, and not to the line input of another device. although the built - in short circuit protection will prevent any damage to the headphone outputs, such a connection may be noisy, and may not func tion properly if the other device is grounded. mono output the mono output , can be used as a line output , a headphone output or auxiliary ground for cap - less driving of loads by spk out. recommended external components are shown below. figure 24 recommended circuit for line output the dc blocking capacitors and the load resistance together determine the lower cut - off frequency, f c . assuming a 10 k ? load and c1 = 1 ? f: f c = 1 / 2 ? (r l +r 1 ) c 1 = 1 / (2 ? x 10.1k ? x 1 ? f) = 16 hz increasing the capacitance lowers f c , improving the bass respo nse. smaller values of c1 will diminish the bass res ponse. the function of r1 is to protect the line outputs from damage when used improperly. w m 8 9 7 4 c 2 2 2 0 u f s p k o u t p s p k o u t n s p k g n d = 0 v c 1 2 2 0 u f s p k o u t p s p k o u t n m o n o o u t = m u t e = > v m i d w m 8 9 7 4 a g n d l i n e - o u t s o c k e t c 1 1 u f r 1 1 0 0 o h m m o n o o u t w m 8 9 7 4
WM8974 rev 4.7 49 digital audio interf ace s th e audio interface has four pins: ? adcdat: adc data output ? dacdat: dac data input ? frame : data alignment clock ? bclk: bit clock, for synchronisation the clock signals bclk, and frame can be outputs when the WM8974 operates as a master, or inputs when it is a slave (see master and s l a ve mode operation, below). four different audio data formats are supported: ? left justified ? right justified ? i 2 s ? dsp mode all of these modes are msb first. they are described in audio data formats, below. refer to the electrical cha racteristic section for timing information. master and slave mod e operation the WM8974 audio interf ace may be configured as e ither master or slave . as a master interface device the WM8974 generat es bclk and frame and thus controls sequencing of the data t ransfer on adcdat and dacdat. to set the device to master mode register bit ms should be set high. in slave mode (ms=0) , the WM8974 responds with data to clocks it receives over the digital audio interfaces. audio data formats in left justified mode, th e msb is available on the first rising edge of bclk following an frame transition. the other bits up to the lsb are then transmitted in order. depending on word length, bclk frequency and sample rate, there may be unused bclk cycles before each frame trans ition. figure 25 left justified audio interface (assuming n - bit word length) in right justified mode, the lsb is available on the last rising edge of bclk before a frame transition. all other bits ar e transmitted before (msb first). depending on word length, bclk frequency and sample rate, there may be unused bclk cycles after each frame transition. l e f t p h a s e r i g h t p h a s e f r a m e b c l k d a c d a t / a d c d a t 1 / f s n 3 2 1 n - 2 n - 1 l s b m s b
WM8974 50 rev 4.7 figure 26 right justified audio interface (assu ming n - bit word length) in i 2 s mode, the msb is available on the second rising edge of bclk following a frame transition. the other bits up to the lsb are then transmitted in order. depending on word length, bclk frequency and sample rate, there may be un used bclk cycles between the lsb of one sample and the msb of the next. figure 27 i 2 s audio interface (assuming n - bit word length) in dsp/pcm mode, the left channel msb is available on the 2 nd rising edge of bclk (selectable by lrp) following a rising edge of frame . right channel data immediately follows left channel data. depending on word length, bclk frequency and sample rate, there may be unused bclk cycles between the lsb of the right channel data and the next sample. framep should be set to 0 in this mode. figure 28 dsp /pcm mode a udio interface l e f t p h a s e r i g h t p h a s e f r a m e b c l k d a c d a t / a d c d a t 1 / f s n 3 2 1 n - 2 n - 1 l s b m s b l e f t p h a s e r i g h t p h a s e f r a m e b c l k d a c d a t / a d c d a t 1 / f s n 3 2 1 n - 2 n - 1 l s b m s b 1 b c l k f r a m e b c l k d a c d a t / a d c d a t n 3 2 1 n - 2 n - 1 l s b m s b 1 b c l k i n p u t w o r d l e n g t h ( w l ) 1 / f s
WM8974 rev 4.7 51 register address bit label default description r4 audio i nterface c ontrol 1 adclrswap 0 controls whether adc data appears in right or left phases of frame clock: 0=adc data appear in left phase of 1=adc data appears in right phase of right or left phases of frame clock: ac data appear in left phase of 1=dac data appears in right phase of 2 s format 11= dsp /pcm mode 6:5 wl 10 word length 00=16 bits 01=20 bits 10=24 bits 11=32 bits (see note) 7 framep 0 frame clock polarity 0=normal 1=inverted dsp mode control 1 = reserved 0 = configures interface so that msb is available o n 2nd bclk rising edge after frame rising edge 8 bcp 0 bclk polarity 0=normal 1=inverte d table 47 audio interface control audio interface cont rol the register bits controlling audio format, word length and master / slave mode are summarised below. each audio interface can be controlled individually. register bit ms selects audio interface operation in master or slave mode. in master mode bclk, and frame are outputs. the frequency of bclk and frame in master mode are controlled with bclkdiv . these are divided down versions of master clock . t his may result in short bc lk pulses at the end of a frame if there is a non - integer ratio of bclks to frame clocks . register address bit label default description r6 clock g eneration c ontrol 0 ms 0 sets the chip to be master over frame and bclk 0= bclk and frame clock are input s 1 = bclk and frame clock are output s generated by the WM8974 (master)
WM8974 52 rev 4.7 register address bit label default description 4:2 bclkdiv 0 00 configures the bclk and fram e output frequency, for use when the chip is master over bclk. 000 = divide by 1 ( bclk=mclk ) 001=divide by 2 (bclk=mclk/2) 010=divide by 4 011=di vide by 8 100=divide by 16 101=divide by 32 110=reserved 111=reserved 7:5 mclkdiv 0 1 0 sets the scaling for either the mclk or pll clock output (under control of clksel) 000= divide by 1 001=divide by 1.5 010=divide by 2 011=divide by 3 100=divide by 4 101 =divide by 6 110=divide by 8 111=divide by 12 8 clksel 1 controls the source of the clock for all internal operation: 0=mclk 1=pll out put table 48 clock c ontrol note that the setting mclkdiv=000 and bclkdiv=000 must not be used simultaneously. loopback setting the loopback register bit enables digital loopback. when this bit is set t he output data from the adc audio interface is fed directly into the dac data input. companding the WM8974 supports a - law and ? - law companding on both transmit (adc) and receive (dac) sides. companding can be enabled on the dac or adc audio interfaces by writing the appropriate value to the dac_comp or adc_comp register bits respectively . register address bit label default description r5 compandi ng c ontrol 0 loopback 0 digital loopback function 0=no loopback 1=loopback enabled, adc data output is f ed directly into dac data input. 2:1 adc_comp 0 adc companding 00=off 01=reserved 10= - law 11=a - law
WM8974 rev 4.7 53 register address bit label default description 4:3 dac_comp 0 dac companding 00=off 01=reser ved 10= - law 11=a - law table 49 companding c ontrol companding involves using a piecewise linear approximation of the following equations (as set out by itu - t g.711 standard) for data compression: ? - law (where ? =255 for the u.s. an d japan): f(x) = ln(1 + ? |x|) / ln(1 + ? ) } - 1 x 1 a - law (where a=87.6 for europe): f(x) = a|x| / (1 + lna) ? for x 1/a f(x) = (1 + lna|x|) / (1 + lna) ? for 1/a x 1 the companded data is also inverted as recommended by the g.711 standard (all 8 bits are inverted for ? - law, all even data bits are inverted for a - law). the data will be transmitted as the first 8 msbs of data. companding converts 13 bits ( ? - law) or 12 bits (a - law) to 8 bits using non - linear quantization. the input data ra nge is separated into 8 levels, allowing low amplitude signals better precision than that of high amplitude signals. this is to exploit the operation of the human auditory system, where louder sounds do not require as much resolution as quieter sounds. the companded signal is an 8 - bit word containing sign (1 - bit), exponent (3 - bits) and mantissa (4 - bits). bit 7 bit[ 6 :4] bit[3:0] sign exponent mantissa table 50 8 - bit companded word composition figure 29 u - law companding u-law companding 0 20 40 60 80 100 120 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 normalised input companded output 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 normalised output
WM8974 54 rev 4.7 figure 30 a - law companding a udio s ample r ates the WM8974 sample rates for the adc and the dac are set using the sr register bits. the cut - offs for the digital filters and the alc attack/decay times stated are determined using these values and assume a 256fs master clock rate. if a sample rate that is not explicitly supported by the sr register settings is required then the closest sr value to that sample rate should be chosen, the filter characteristics an d the alc attack, decay and hold times will scale appropriately. register address bit label default description r7 additional c ontrol 3:1 sr 000 approximate sample rate (configures the coefficients for the internal digital filters) : 000=48khz 001=32khz 010=24khz 011=16khz 100=12khz 101=8khz 110 - 111=reserved table 51 sample rate control a-law companding 0 20 40 60 80 100 120 0 0.2 0.4 0.6 0.8 1 normalised input companded output 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 normalised output
WM8974 rev 4.7 55 master clock and pha se locked loop (pll) the WM8974 has an on - chip phase - locked loop (pll) circuit that can be used to: generate master clocks f or the WM8974 audio functions from another external clock, e.g. in telecoms applications. generate and output (on pin csb /gpio) a clock for another part of the system that is derived from an existing audio master clock. figure 31 shows the pll and internal clocki ng arrangement on the WM8974. the pll can be enabled or disabled by the pllen register bit. note: in order to minimise current consumption, the pll is disabled when the vmidsel[1:0] bits are set to 00b. vmids el[1:0] must be set to a value other than 00b to enable the pll. register address bit label default description r1 power management 1 5 pllen 0 pll enable 0=pll off 1=pll on table 52 pllen c ontrol b it figure 31 pll and clock select circuit the pll frequency ratio r = f 2 /f 1 (see figure 31 ) can be set using the register bits pllk and plln: plln = int r pllk = int (2 24 (r - plln)) m c l k f / 2 p l l 1 r = f 2 / f 1 f / 4 2 5 6 f s c s b / g p i o f 2 f 1 g p i o s e l r 8 [ 2 : 1 ] . . . p l l p r e s c a l e r 3 6 [ 4 ] f / n m c l k d i v r 6 [ 7 : 5 ] o p c l k d i v r 8 [ 5 : 4 ] f / n a d c d a c f / 4 m a s t e r m o d e a d c o s r 1 2 8 r 1 4 [ 3 ] f / 2 d a c o s r 1 2 8 r 1 0 [ 3 ] f r a m e b c l k c l k s e l r 6 [ 8 ] f / 2 f / 4 b c l k d i v r 6 [ 4 : 2 ] m s r 6 [ 0 ] m s r 6 [ 0 ] f p l l o u t
WM8974 56 rev 4.7 example: mclk=12mhz, re quired clock = 12.288mhz. r should be chosen to ensure 5 < plln < 13. there is a fixed divide by 4 in the pll and a selectable divide by n after the pll which should be set to divide by 2 to meet this requirement. enabling the divide by 2 sets the require d f 2 = 4 x 2 x 12.288mhz = 98.304mhz. r = 98.304 / 12 = 8.192 plln = int r = 8 k = int ( 2 24 x (8.192 C 8)) = 3221225 = 3126e9 h register address bit label default description r36 pll n value 4 pllprescale 0 0 = mclk input not divided (default) 1= divide m clk by 2 before input to pll 3:0 plln 10 00 integer (n) part of pll input/output frequency ratio. use values greater than 5 and less than 13. r37 pll k value 1 5:0 pllk [23:18] 0ch fractional (k) part of pll1 input/output frequency ratio (treat as one 24 - digit binary number). r38 pll k value 2 8:0 pllk [17:9] 093 h r39 pll k value 3 8:0 pllk [8:0] 0e9 h table 53 pll frequency ratio control the pll performs best when f 2 is around 90mhz. its stability peaks at n=8. some exam p le settings are shown in table 54 . mclk (mhz) (f1) desired output (mhz) f2 (mhz) prescale divide postscale divide r n (hex) k (hex) 12 11.2896 90.3168 1 2 7.5264 7 86c220 12 12.288 98.304 1 2 8.192 8 3126e8 13 11.2896 90.3168 1 2 6.947446 6 f28bd4 13 12.288 98.304 1 2 7.561846 7 8fd525 14.4 1 1.2896 90.3168 1 2 6.272 6 45a1ca 14.4 12.288 98.304 1 2 6.826667 6 d3a06e 19.2 11.2 896 90.3168 2 2 9.408 9 6872 af 19.2 12.288 98.304 2 2 10.24 a 3d70a 3 19.68 11.2896 90.3168 2 2 9.1785 37 9 2db49 2 19.68 12.288 98.304 2 2 9.990243 9 fd809 f 19.8 11.2896 90.3168 2 2 9.122909 9 1f76f 7 19.8 12.288 98.304 2 2 9.929697 9 ee009 e 24 11.2896 90.3168 2 2 7.5264 7 86c22 6 24 12.288 98.304 2 2 8.192 8 3126e 8 26 11.2896 90.3168 2 2 6.947446 6 f28 bd 4 26 12.288 98.304 2 2 7.561846 7 8fd52 5 27 11.2896 90.3168 2 2 6.690133 6 bo ac93 27 12.288 98.304 2 2 7.281778 7 48229 6 table 54 pll frequency examples
WM8974 rev 4.7 57 general purpose inpu t/output the csb /gpio pin can b e configured to perf orm a variety of useful tasks by setting the gpiosel register bits. the gpio is only available in 2 wire mode. note that slowclken must be enabled when using the j ack d etect function. register address bit label default description r8 gpio c ontrol 2:0 gpi osel 000 csb /gpio pin function select: 000= csb input 001= jack insert detect 010=temp ok 011=a uto mute active 100=pll clk o/p 101=pll lock 110=reserved 111=reserved 3 gpiopol 0 gpio polarity invert 0=non inverted 1=inverted 5:4 opclkdiv 00 pll output cl ock division ratio 00=divide by 1 01=divide by 2 10=divide by 3 11=divide by 4 table 55 csb /gpio control control interface selection of control mode and 2 - wire mode address the control interface can operate as either a 3 - wire or 2 - wire mpu interface. the mode pin determines the 2 or 3 wire mode as shown in table 56 . the WM8974 is controlled by writing to registers through a serial control interface. a control word consists of 16 bits. the first 7 bits (b15 to b9) are address bits that select which control register is accessed. the remaining 9 bits (b8 to b0) are register bits, corresponding to the 9 bits in each control register. mode interface format low 2 wire high 3 wire table 56 control interface mode selection
WM8974 58 rev 4.7 3 - wire serial control mode in 3 - wire mode, every rising edge of sclk clocks in one data bit from the s din pin. a rising edge on csb/gpio latches in a complete control word consisting of the last 16 bits. figure 32 3 - wire serial control interface 2 - wire serial control mode the WM8974 supports software control via a 2 - wire serial bus. many devices can be controlled by the same bus, and each device has a unique 7 - bit device address (this is not the same as the 7 - bit address of each register in the WM8974). the WM8974 operates as a slave device only. the controller indicates the start of data transfer with a high to low transition on sdin while sclk remains high. this indicates that a device address and data will follow. all devices on the 2 - wire bus respond to the start condition and shift in the next eight bits on sdin (7 - bit address + read/write bit, msb first). if the device address received matches the addres s of the WM8974, then the WM8974 responds by pulling sdin low on the next clock pulse (ack). if the address is not recognised or the r/w bit is 1 when operating in write only mode, the WM8974 returns to the idle condition and wait for a new start conditi on and valid address. during a write, once the WM8974 has acknowledged a correct address, the controller sends the first byte of control data (b15 to b8, i.e. the WM8974 register address plus the first bit of register data). the WM8974 then acknowledges th e first data byte by pulling sdin low for one clock pulse. the controller then sends the second byte of control data (b7 to b0, i.e. the remaining 8 bits of register data), and the WM8974 acknowledges again by pulling sdin low. transfers are complete when there is a low to high transition on sdin while sclk is high. after a complete sequence the WM8974 returns to the idle state and waits for another start condition. if a start or stop condition is detected out of sequence at any point during data transfer ( i.e. sdin changes while sclk is high), the device jumps to the idle condition. figure 33 2 - wire serial control interface in 2 - wire mode t he WM8974 has a fixed device addre ss, 0011010 . b 1 5 b 1 4 b 1 3 b 1 2 b 1 1 b 1 0 b 9 b 8 b 7 b 6 b 5 b 4 b 3 b 2 b 1 b 0 s d i n s c l k c s b c o n t r o l r e g i s t e r a d d r e s s c o n t r o l r e g i s t e r d a t a b i t s l a t c h sdin sclk register address and 1st register data bit device address (7 bits) rd / wr bit ack (low) control byte 1 (bits 15 to 8) control byte 1 (bits 7 to 0) remaining 8 bits of register data stop start ack (low) ack (low)
WM8974 rev 4.7 59 r esetting the chip the WM8974 can be reset by performing a write of any value to the software reset register (address 0 hex). this will cause all register values to be reset to their default values. in addition to this there is a power - on reset (por) circuit which ensures that the registers are set to default when the device is powered up. power supplies the WM8974 can use up to four separate power supplies: avdd and agnd: analogue supply, powers all analogue functions except the speaker output and mono output drivers. avdd can range from 2.5v t o 3.6v and has the most significant impact on overall power consumption (except for power consumed in the headphone). a large avdd slightly improves audio quality. spkvdd and spkgnd : headphone and speaker supplies, power the s peaker and mono output drivers . spkvdd can range from 2.5v to 5 .5 v. spkvdd can be tied to avdd, but it requires separate layout and decoupling capacitors to curb harmonic dist ortion. with a larger spkvdd , louder headphone and speaker outputs can be achieved wit h lower distortion. if sp kvdd is lower than avdd (or 1.5 x avdd for boost mode), the output signal may be clipped. dcvdd: digital core supply, powers all digital functions except the audio and control int er faces. dcvdd can range from 1. 71v to 3.6v, and has no effect on audio quali ty. the return path for dcvdd is dgnd, which is shared with dbvdd. dbvdd can ra n ge from 1. 71 v to 3.6v. dbvdd return path is through dgnd. it is possible to use the same supply voltage for all four supplies . however, digital and analogue supplies should be routed and decoupled separately on the pcb to keep digital switching noise out of the analogue signal paths. note: ? dcvdd should be greater than or equal to 1.9v when using the pll. ? dcvdd is less than or equal to dbvdd recommended power up /down seqence in order to minimize output pop and click noise, it is recommended that the wm 8974 device is powered up and down using one of the following sequences: power up when not using the output 1.5x boost stage: 1. turn on external power supplies. wait for supply v oltage to settle. 2. set biasen = 1, bufioen = 1 and also the vmidsel[1:0] bits in the power management 1 register. * notes 1 and 2. 3. wait for the vmid supply to settle. * note 2. 4. enable dac by setting dacen = 1. 5. enable mixers as required. 6. enab le output stages as required. power up when using the output 1.5x boost stage: 1. turn on external power supplies. wait for supply voltage to settle. 2. enable 1.5x output boost. set monoboost = 1 and spkboost = 1 as required.
WM8974 60 rev 4.7 3. set biasen = 1, bufioen = 1, bufdcopen = 1 and also the vmidsel[1:0] bits in the power management 1 register. * notes 1 and 2. 4. wait for the vmid supply to settle. * note 2. 5. enable dac by setting dacen = 1. 6. enable mixers as required. 7. enable output stages as required. power down (all cases): 1. soft mute dac by setting dacmu = 1. 2. disable power management register 1 by setting r1[8:0]=0x00. 3. disable all other output stages. 4. turn off external power supplies. notes: 1. this step enables the internal device bias bu ffer and the vmid buffer for unassigned inputs/outputs. this will provide a start - up reference voltage for all inputs and outputs. this will cause the inputs and outputs to ramp towards vmid (not using output 1.5x boost) or 1.5 x (avdd/2) (using output 1.5 x boost) in a way that is controlled and predictable (see note 2). 2. choose the value of the vmidsel bits based on the start - up time (vmidsel=10 for slowest start - up, vmidsel=11 for fastest start - up). start - up time is defined by the value of the vmidsel bits (the reference impedance) and the external decoupling capacitor on vmid. in addition to the power on sequence, it is recommended that the zero cross functions are used when changing the volume in the pgas to avoid any audible pops or clicks. figure 34 adc power up and down sequence (not to scale) v p o r a d g n d i n t e r n a l p o r a c t i v e d e v i c e r e a d y n o p o w e r v p o r _ o f f p o w e r s u p p l y p o r i 2 s c l o c k s a d c i n t e r n a l s t a t e t m i d r a i l _ o n a n a l o g u e i n p u t s a d c d a t p i n g d a d c e n b i t p o w e r d o w n i n i t n o r m a l o p e r a t i o n n o r m a l o p e r a t i o n i n i t p d p o w e r d o w n a d c e n a b l e d a d c e n a b l e d a d c o f f t a d c i n t d n c i n p p g a e n b i t t a d c i n t i n p p g a e n a b l e d d n c g d g d g d p o r p o r u n d e f i n e d v m i d e n a b l e d v m i d s e l / b i a s e n b i t s a v d d / 2 t m i d r a i l _ o f f ( n o t e 1 ) ( n o t e 2 ) ( n o t e 3 ) ( n o t e 4 ) v p o r _ o n
WM8974 rev 4.7 61 symbol min typical max unit t midrail_on 500 ms t midrail_off >10 s t adcint 2/fs n /fs table 57 typical por operation (typic al values, not tested) notes: 1. the analogue input pin charge time, t midrail_on, is determined by the vmid pin charge time. this time is dependent upon the value of vmid decoupling capacitor and vmid pin input resistance and avdd power supply rise time. 2. th e analogue input pin discharge time, t midrail_off, is determined by the analogue input coupling capacitor discharge time. the time, t midrail_off , is measured using a 1 f capacitor on the analogue input but will vary dependent upon the value of input coupli ng capacitor. 3. while the adc is enabled there will be lsb data bit activity on the adcdat pin due to system noise but no significant digital output will be present. 4. the vmidsel and biasen bits must be set to enable analogue input midrail voltage and for no rmal adc operation. 5. adcdat data output delay from power C p - with power supplies starting from C v - is determined primarily by the vmid charge time. adc initialisation and power management bits may be set immediately after por is released; vmid charge time will be significantly longer and will dictate when the device is stabilised for analogue input. 6. adcdat data output delay at power up from device standby (power supplies already applied) is determined by a dc initialisation time, 2/fs. figure 35 dac power up and down sequence (not to scale) v p o r a d g n d i n t e r n a l p o r a c t i v e d e v i c e r e a d y n o p o w e r v p o r _ o f f p o w e r s u p p l y p o r i 2 s c l o c k s d a c i n t e r n a l s t a t e t l i n e _ m i d r a i l _ o n l i n e o u t o u t p u t s d a c d a t p i n g d d a c e n b i t p o w e r d o w n i n i t n o r m a l o p e r a t i o n n o r m a l o p e r a t i o n i n i t p d p o w e r d o w n d a c e n a b l e d d a c e n a b l e d d a c o f f t d a c i n t d n c a n a l o g u e o u t p u t s t d a c i n t a n a l o g u e o u t p u t s e n a b l e d d n c g d g d t p o r p o r u n d e f i n e d v m i d e n a b l e d v m i d s e l / a v d d / 2 t l i n e _ m i d r a i l _ o f f ( n o t e 1 ) ( n o t e 3 ) ( n o t e 6 ) t h p _ m i d r a i l _ o n h p o u t p u t s a v d d / 2 t h p _ m i d r a i l _ o f f ( n o t e 4 ) ( n o t e 5 ) e n a b l e b i t s b i a s e n b i t s d a c d i s a b l e d d a c d i s a b l e d ( n o t e 2 ) v p o r _ o n
WM8974 62 rev 4.7 symbol min typical max unit t line_midrail_on 500 ms t line_midrail_off 1 s t hp_midrail_on 500 ms t hp__midrail_off 6 s t dacint 2/fs n /fs table 58 typical por operation (typical values, not tested) notes: 1. the lineout charge time, t line_midrail_on, is mainly determined by the vmid pin charge time. this time is dependent upon the value of vmid decoupling capacitor and vmid pin inpu t resistance and avdd power supply rise time. the values above were measured using a 4.7 f capacitor. 2. it is not advisable to allow dacdat data input during initialisation of the dac. if the dac data value is not zero at point of initialisation, then this is likely to cause a pop noise on the analogue outputs. the same is also true if the dacd at is removed at a non - zero value, and no mute function has been applied to the signal beforehand. 3. the lineout discharge time, t line_midrail_off, is dependent upon the value of the lineout coupling capacitor and the leakage resistance path to ground. the v alues above were measured using a 10 f output capacitor. 4. the headphone charge time, t hp_midrail_on, is dependent upon the value of vmid decoupling capacitor and vmid pin input resistance and avdd power supply rise time. the values above were measured using a 4.7 f vmid decoupling capacitor. 5. the headphone discharge time, t hp_midrail_off, is dependent upon the value of the headphone coupling capacitor and the leakage resistance path to ground. the values above were measured using a 100 f capacitor. 6. the vmidsel and biasen bits must be set to ena ble analogue output midrail voltage and for normal dac operation.
WM8974 rev 4.7 63 p ower m anagement saving power by redu cing oversampling ra te the default mode of operation of the adc and dac digital filters is in 64x oversampling mode. under the control of adcosr and dac osr the oversampling rate may be doubled. 64x oversampling results in a slight decrease in noise performance compared to 128x but lowers the power consumption of the device. register address bit label default description r10 dac control 3 dacosr 128 0 d ac oversample rate select 0 = 64x (lowest power) 1 = 128x (best snr) r14 adc control 3 adcosr 128 0 adc oversample rate select 0 = 64x (lowest power) 1 = 128x (best snr) table 59 adc and dac oversampling rate selection vmid the a nalogue circuitry will not work when vmid is disabled (vmidsel [1:0] = 00 b ). the impedance of the vmid resistor string, together with the decoupling capacitor on the vmid pin will determine the start - up time of the vmid circuit. register address bit label default description r1 power management 1 1:0 vmidsel 00 reference string impedance to vmid pin determines start - up time): 00 = off (open circuit) 01 = 50k ? ? ? table 60 vmid i mpedance c ontrol bi asen register address bit label default description r1 power management 1 3 biasen 0 analogue amplifier bias control 0=disabled 1=enabled table 61 biasen control estimated supply cur rents when either the dac or adc are enabled it is estimated that approximately 4ma will be drawn from dcvdd when dcvdd=1.8v and fs=48khz (this will be lower at lower sample rates). when the pll is enabled an additional 700 microamps will be drawn from dcvdd.
WM8974 64 rev 4.7 table 59 shows the estimated 3.3v avdd cur rent drawn by various circuits, by register bit. register bit avdd current (millia mps) bufdcopen 0.1 monoen 0.2 pllen 1.4 (with clocks applied) micben 0.5 biasen 0.3 bufioen 0.1 vmidsel 10k=>0.3, less than 0.1 for 5 0k/500k boosten 0.2 inppgaen 0.2 adcen x64 (adcosr=0)=>2.6, x128 (adcosr=1)=>4.9 monoen 0.2 spkpen 1ma from spkvdd + 0.2ma from avdd in 5v mode spknen 1ma from spkvdd + 0.2ma from avdd in 5v mode monomixen 0.2 spkmixen 0.2 dacen x64 (dacosr=0)=>1.8, x128(dacosr=1)=>1.9 table 62 avdd supply current
WM8974 rev 4.7 65 r egister m ap addr b[15:9] register name b8 b7 b6 b5 b4 b3 b2 b1 b0 def t val dec hex (hex) 0 00 software reset software reset 1 01 power m anaget 1 bufdc op en 0 auxen pllen micben biasen bufioen v midsel 000 2 02 power m anaget 2 0 0 0 0 boosten 0 inppgaen 0 adcen 000 3 03 power managet 3 0 monoen spknen spkpen 0 mono mixen spk mixen 0 dacen 000 4 04 audio interface bcp framep wl fmt d ac lrsw ap a dc lrsw ap 0 0 50 5 05 companding ctrl 0 0 0 0 dac_co mp adc_comp loopback 000 6 06 clock gen ctrl clksel mclkdiv bclkdiv 0 ms 140 7 07 additional ctrl 0 0 0 0 0 sr slowclk en 000 8 08 gpio 0 0 0 opclkdiv gpiopol gpiosel 000 10 0a dac control 0 0 dacmu deemph dacosr 128 amute 0 dacpol 000 11 0b dac digit al vol 0 dacvol 0ff 14 0e adc control hpfen hpfapp hpfcut adcosr 128 0 0 adcpol 10 0 15 0f adc digital vol 0 adcvol 0ff 18 12 eq1 C low shelf eqmode 0 eq1c eq1g 12c 19 13 eq2 C peak 1 eq2bw 0 eq2c eq2g 02c 20 14 eq3 C peak 2 eq3bw 0 eq3c eq3g 02c 21 1 5 eq4 C peak 3 eq4bw 0 eq4c eq4g 02c 22 16 eq5 C high shelf 0 0 eq5c eq5g 02c 24 18 dac limiter 1 limen limdcy limatk 032 25 19 dac limiter 2 0 0 limlvl limboost 000 27 1b notch filter 1 nfu nfen nfa0[13:7] 000 28 1c notch filter 2 nfu 0 nfa0[6:0] 000 29 1d notch filter 3 nfu 0 nfa1[13:7] 000 30 1e notch filter 4 nfu 0 nfa1[6:0] 000 32 20 alc control 1 alcsel 0 0 alcmax alcmin 038 33 21 alc control 2 alczc alchld alclvl 00b 34 22 alc control 3 alcmode alcdcy alcatk 032 35 23 noise gate 0 0 0 0 0 ngen ngth 000 36 24 pll n 0 0 0 0 pllpre scale plln[3:0] 00 8 37 25 pll k 1 0 0 0 pllk[23:18] 00c 38 26 pll k 2 pllk[17:9] 093 39 27 pll k 3 pllk[8:0] 0e9 4 0 28 attenuation ctrl 0 0 0 0 0 0 monoatt n spkattn 0 000 44 2c input ctrl mbvsel 0 0 0 0 auxmo de aux2 inppga micn2 inppga micp2 inppga 003 45 2d inp pga gain ctrl 0 inppgazc inppga mute inppgavol 0 1 0 47 2f adc boost ctrl pgaboost 0 micp2boostvol 0 aux2boostvol 0 00 49 31 output ctrl 0 0 0 0 0 mono spk tsden vroi 002
WM8974 66 rev 4.7 addr b[15:9] register name b8 b7 b6 b5 b4 b3 b2 b1 b0 def t val dec hex (hex) boost boost 50 32 spk mixer c trl 0 0 0 aux2spk 0 0 0 byp2spk dac2spk 000 54 36 spk volume ctrl 0 spkzc spkmute spkvol 0 3 9 56 38 mono mixer ctrl 0 0 mono mute 0 0 0 aux2 mono byp2 mono dac2 mono 000 register bits by add ress notes : 1. default values of n/a indicate non - latched data bits (e.g. software reset or volume update bits). 2. register bits marked a s "reser v ed" should not be changed from the default. register address bit label default description refer to 0 (00h) [8:0] reset n/a software reset resetting the chip 1 (01h) 8 bu fdcopen 0 dedicated buffer for dc level shifting output stages when in 1.5x gain boost configuration. 0=buffer disabled 1=buffer enabled (required for 1.5x gain boost) analogue outputs 7 0 reserved 6 auxen 0 auxiliary input buffer enable 0 = off 1 = on auxiliary inputs 5 pllen 0 pll enable 0=pll off 1=pll on master clock and phase locked loop (pll) 4 micben 0 microphone bias enable 0 = off (high impedance output) 1 = on microphone biasing circuit 3 biasen 0 analogue amplifier bias control 0=dis abled 1=enabled power management 2 bufioen 0 unused input/output tie off buffer enable 0=disabled 1=enabled enabling the outputs 1:0 vmidsel 00 reference string impedance to vmid pin: 00=off (open circuit) 01= 50k ? ? ?
WM8974 rev 4.7 67 register address bit label default description refer to 0 adcen 0 adc enable cont rol 0 = adc disabled 1 = adc enabled analogue to digital converter (adc) 3 (03h) 8 0 reserved 7 monoen 0 monoout enable 0 = disabled 1 = enabled analogue outputs 6 spknen 0 spkoutn enable 0 = disabled 1 = enabled analogue outputs 5 spkpen 0 spkout p enable 0 = disabled 1 = enabled analogue outputs 4 0 reserved 3 monomixen 0 mono mixer enable 0 = disabled 1 = enabled analogue outputs 2 spkmixen 0 speaker mixer enable 0 = disabled 1 = enabled analogue outputs 1 0 reserved 0 dacen 0 dac e nable 0 = dac disabled 1 = dac enabled analogue outputs 4 (04h) 8 bcp 0 bclk polarity 0=normal 1=inverted digital audio interfaces 7 framep 0 frame clock polarity 0=normal 1=inverted digital audio interfaces dsp mode control 1 = reserved 0 = config ures the interface so that msb is available o n 2nd bclk rising edge after frame rising edge 6:5 wl 10 word length 00=16 bits 01=20 bits 10=24 bits 11=32 bits digital audio interfaces 4:3 fmt 10 audio interface data format select: 00=right justified 01 =left justified 10=i 2 s format 11= dsp/pcm mode digital audio interfaces 2 daclrswap 0 controls whether dac data appears in right or left 0=dac data appear in left phase of frame 1=dac data appears in right phase of frame controls whether adc data appears in right or left 0=adc data appear in left phase of frame 1=adc data appears in right phase of frame
WM8974 68 rev 4.7 register address bit label default description refer to 5 (0 5 h ) 8 :5 0000 reserved 4:3 dac_comp 00 dac companding 00=off 01=reserved 10= - law 11=a - law digital audio interfaces 2:1 adc_comp 00 adc companding 00=off 01=reserved 10= - law 11=a - law digital audio interfaces 0 loopback 0 digital loopback function 0=n o loopback 1=loopback enabled, adc data output is fed directly into dac data input. digital audio interfaces 6 (0 6 h) 8 clksel 1 controls the source of the clock for all internal operation: 0=mclk 1=pll output digital audio interfaces 7 :5 mclkdiv 010 set s the scaling for either the mclk or pll clock output (under control of clksel) 000=divide by 1 001=divide by 1.5 010=divide by 2 011=divide by 3 100=divide by 4 101=divide by 6 110=divide by 8 111=divide by 12 digital audio interfaces 4:2 bclkdiv 000 co nfigures the bclk and frame output frequency, for use when the chip is master over bclk. 000=divide by 1 (bclk=mclk) 001=divide by 2 (bclk=mclk/2) 010=divide by 4 011=divide by 8 100=divide by 16 101=divide by 32 110=reserved 111=reserved digital audio int erfaces 1 0 reserved 0 ms 0 sets the chip to be master over frame and bclk 0=bclk and frame clock are inputs 1=bclk and frame clock are outputs generated by the WM8974 (master) digital audio interfaces 7 (07h) 8:4 00000 reserved 3 :1 sr 000 appro ximate sample rate (configures the coefficients for the internal digital filters): 000=48khz 001=32khz 010=24khz 011=16khz 100=12khz 101=8khz 110 - 111=reserved audio sample rates
WM8974 rev 4.7 69 register address bit label default description refer to 0 0 reserved 8 (0 8 h) 8 :6 000 reserved 5:4 opclkdiv 00 pll output cloc k division ratio 00=divide by 1 01=divide by 2 10=divide by 3 11=divide by 4 general purpose input output 3 gpiopol 0 gpio polarity invert 0=non inverted 1=inverted general purpose input output 2:0 gpiosel 000 csb/gpio pin function select: 000=csb inpu t 001= jack insert detect 010=temp ok 011=a uto mute active 100=pll clk o/p 101=pll lock 110=reserved 111=reserved general purpose input output 9 (09h) 8:0 reserved 10 (0ah) 8:7 00 reserved 6 dacmu 0 dac soft mute enable 0 = dacmu disabled 1 = dacmu enabled output signal path 5 :4 deemph 00 de - emphasis control 00 = no de - emphasis 01 = 32khz sample rate 10 = 44.1khz sample rate 11 = 48khz sample rate output signal path 3 dacosr128 0 dac oversample rate select 0 = 64x (lowest power) 1 = 128x (best s nr) power management 2 amute 0 dac auto mute enable 0 = auto mute dis abled 1 = automute en abled output signal path 1 0 reserved 0 dacpol 0 dac polarity invert 0 = no inversion 1 = dac output inverted output signal path 1 1 (0 b h) 8 0 reserved 7:0 dacvol 11111111 dac digital volume control 0000 0000 = digital mute 0000 0001 = - 127db 0000 0010 = - 126.5db ... 0.5db steps up to 1111 1111 = 0db output signal path 12 (0ch) 8:0 reserved 13 (0dh) 8:0 reserved 1 4 (0 e h) 8 hpfen 1 high - pass filter en able 0=disabled 1=enabled analogue to digital converter (adc)
WM8974 70 rev 4.7 register address bit label default description refer to 7 hpfapp 0 select audio mode or application mode 0=audio mode (1 st order, fc = ~3.7hz) 1=application mode (2 nd order, fc = hpfcut) analogue to digital converter (adc) 6 :4 hpfcut 000 applica tion mode cut - off frequency see table 11 for details. analogue to digital converter (adc) 3 adcosr128 0 adc oversample rate select 0 = 64x (lowest power) 1 = 128x (best snr) power management 2:1 00 reserved 0 adcpol 0 adc p olarity 0=normal 1=inverted analogue to digital converter (adc) 1 5 (0f h) 8 0 reserved 7:0 adcvol 11111111 adc digital volume control 0000 0000 = digital mute 0000 0001 = - 127db 0000 0010 = - 126.5db ... 0.5db steps up to 1111 1111 = 0db analogue to di gital converter (adc) 16 (10h) 8:0 reserved 17 (11h) 8:0 reserved 18 (12h) 8 eqmode 1 0 = equaliser applied to adc path 1 = equaliser applied to dac path output signal path 7 0 reserved 6:5 eq1c 01 eq band 1 cut - off frequency: 00=80hz 01=105 hz 10=135hz 11=175hz output signal path 4:0 eq1g 01100 eq band 1 gain control. see table 35 for details. output signal path 19 (13h) 8 eq2bw 0 band 2 bandwidth control 0=narrow bandwidth 1=wide bandwidth output signal path 7 0 reserved 6:5 eq2c 01 band 2 centre frequency: 00=230hz 01=300hz 10=385hz 11=500hz output signal path 4:0 eq2g 01100 band 2 gain control. see table 35 for details. output signal path 20 (14h) 8 eq3bw 0 band 3 bandwidth contr ol 0=narrow bandwidth 1=wide bandwidth output signal path 7 0 reserved 6:5 eq3c 01 band 3 centre frequency: 00=650hz 01=850hz 10=1.1khz 11=1.4khz output signal path
WM8974 rev 4.7 71 register address bit label default description refer to 4:0 eq3g 01100 band 3 gain control. see table 35 for detai ls. output signal path 21 (15h) 8 eq4bw 0 band 4 bandwidth control 0=narrow bandwidth 1=wide bandwidth output signal path 7 0 reserved 6:5 eq4c 01 band 4 centre frequency: 00=1.8khz 01=2.4khz 10=3.2khz 11=4.1khz output signal path 4:0 eq4g 01100 b and 4 gain control. see table 35 for details. output signal path 22 (16h) 8:7 00 reserved 6:5 eq5c 01 band 5 cut - off frequency: 00=5.3khz 01=6.9khz 10=9khz 11=11.7khz output signal path 4:0 eq5g 01100 band 5 gain control. se e table 35 for details. output signal path 24 ( 18 h) 8 limen 0 enable the dac digital limiter: 0=disabled 1=enabled output signal path 7 :4 limdcy 0011 dac limiter decay time (per 6db gain change) for 44.1khz sampling. note that these will scale with sample rate: 0000=750us 0001=1.5ms 0010=3ms 0011=6ms 0100=12ms 0101=24ms 0110=48ms 0111=96ms 1000=192ms 1001=384ms 1010=768ms 1011 to 1111=1.536s output signal path 3:0 limatk 0010 dac limiter attack time (per 6db gain change) for 4 4.1khz sampling. note that these will scale with sample rate. 0000=94us 0001=188s 0010=375us 0011=750us 0100=1.5ms 0101=3ms 0110=6ms 0111=12ms 1000=24ms 1001=48ms 1010=96ms 1011 to 1111=192ms output signal path
WM8974 72 rev 4.7 register address bit label default description refer to 25 (19 h) 8 :7 00 reserved 6:4 limlvl 000 dac limiter programmable signal threshold level (determines level at which the limiter starts to operate) 000= - 1db 001= - 2db 010= - 3db 011= - 4db 100= - 5db 101 to 111= - 6db output signal path 3:0 limboost 0000 dac limiter volum e boost (can be used as a stand - alone volume boost when limen=0): 0000=0db 0001=+1db 0010=+2db (1db steps) 1011=+11db 1100=+12db 1101 to 1111=reserved output signal path 27 ( 1b h) 8 nfu 0 notch filter update. the notch filter values used internally only update when one of the nfu bits is set high. analogue to digital converter (adc) 7 nfen 0 notch filter enable: 0=disabled 1=enabled analogue to digital converter (adc) 6:0 nfa0[13:7] 0000000 notch filter a0 coefficient, bits [13:7] analogue to digital converter (adc) 28 (1ch) 8 n fu 0 notch filter update. the notch filter values used internally only update when one of the nfu bits is set high. analogue to digital converter (adc) 7 0 reserved 6:0 nfa0[6:0] 0000000 notch filter a0 coefficient, bits [6:0] analogue to digital converter (adc) 29 (1dh) 8 nfu 0 notch filter update. the notch filter values used internally only update when one of the nfu bits is set high. analogue to digital converter (adc) 7 0 reserved 6:0 nfa1[13:7] 0000000 notch filter a1 coefficient, b its [13:7] analogue to digital converter (adc) 30 (1eh) 8 nfu 0 notch filter update. the notch filter values used internally only update when one of the nfu bits is set high. analogue to digital converter (adc) 7 0 reserved 6:0 nfa1[6:0] 0000000 notch filter a1 coefficient, bits [6:0] analogue to digital converter (adc) 32 ( 20 h) 8 alcsel 0 alc function select: 0=alc off (pga gain set by inppgavol register bits) 1=alc on (alc controls pga gain) input limiter / automatic level control (alc) 7 :6 reserved
WM8974 rev 4.7 73 register address bit label default description refer to 5:3 alcmax 111 set maximum gain of pga when using alc: 111=+35.25db 110=+29.25db 101=+23.25db 100=+17.25db 011=+11.25db 010=+5.25db 001= - 0.75db 000= - 6.75db input limiter / automatic level control (alc) 2:0 alcmin 000 set minimum gain of pga when using alc: 000= - 12db 001= - 6db 010=0db 011=+6db 100=+12db 101=+18db 110=+24db 111=+30db input limiter / automatic level control (alc) 33 ( 21 h) 8 alczc 0 alc zero cross detection. 0 = disabled 1 = enabled input limiter / automatic level control (alc) 7 :4 alchld 000 alc hold time before gain is increased. 0000 = 0ms 0001 = 2.67ms 0010 = 5.33ms (time doubles with every step) C (1.5db steps) (time doubles with (time
WM8974 74 rev 4.7 register address bit label default description refer to 3:0 alcatk 0010 alc attack (gain ramp - down) time (alcmode = 0) input limiter / automatic level control (alc) per step per 6db 90% of range 0000 104us 832us 6ms 0001 208us 1.664ms 12 ms 0010 416us 3.328ms 24.1ms (time doubles with every step) 1010 or higher 106ms 852ms 6.18s 0010 alc attack (gain ramp - down) time (alcmode = 1) per step per 6db 90% of range 0000 22.7us 182.4us 1.31ms 0001 45.4 us 363.2us 2.62ms 0010 90.8us 726.4us 5.26ms (time doubles with every step) 1010 23.2ms 186ms 1.348s 35 (23 h) 8 :4 00000 reserved 3 ngen 0 alc noise gate function enable 1 = enable 0 = disable input limiter / automatic level contro l (alc) 2:0 ngth 000 alc noise gate threshold: 000= - 39db 001= - 45db 010= - 51db (6db steps) 111= - 81db input limiter / automatic level control (alc) 36 (24 h) 8 :5 0000 reserved 4 pllprescale 0 0 = mclk input not divided (default) 1 = divide mclk by 2 b efore input pll master clock and phase locked loop (pll) 3:0 plln[3:0] 1000 integer (n) part of pll input/output frequency ratio. use values greater than 5 and less than 13. master clock and phase locked loop (pll) 37 ( 25 h) 8 :6 000 reserved 5:0 pllk [23:18] 001100 fractional (k) part of pll1 input/output frequency ratio (treat as one 24 - digit binary number). master clock and phase locked loop (pll) 38 (26h) 8:0 pllk[17:9] 010010011 fractional (k) part of pll1 input/output frequency ratio (treat as o ne 24 - digit binary number). master clock and phase locked loop (pll) 39 (27h) 8:0 pllk[8:0] 011101001 fractional (k) part of pll1 input/output frequency ratio (treat as one 24 - digit binary number). master clock and phase locked loop (pll) 40 ( 28 h) 8 :3 000000 reserved 2 monoattn 0 attenuation control for bypass path (output of input boost stage) to mono mixer input 0 = 0db 1 = - 10db analogue outputs 1 spkattn 0 attenuation control for bypass path (output of input boost stage) to speaker mixer input 0 = 0db 1 = - 10db analogue outputs 0 0 reserved
WM8974 rev 4.7 75 register address bit label default description refer to 44 ( 2c h) 8 mbvsel 0 microphone bias voltage control 0 = 0.9 x avdd 1 = 0.75 x avdd input signal path 7 :4 0000 reserved 3 auxmode 0 auxiliary input mode 0 = inverting buffer 1 = mixer (on - chip input resistor bypassed) input signal path 2 aux2inppga 0 select aux amplifier output as input pga signal source. 0=aux not connected to input pga 1=aux connected to input pga amplifier negative terminal. input signal path 1 micn2inppga 1 connect micn to input pga negative terminal. 0=micn not connected to input pga 1=micn connected to input pga amplifier negative terminal. input signal path 0 micp2inppga 1 connect input pga amplifier positive terminal to micp or vmid. 0 = input pga amplifier positive terminal connected to vmid 1 = input pga amplifier positive terminal connected to micp through variable resistor string input signal path 45 ( 2d h) 8 0 reserved 7 inppgazc 0 input pga zero cross enable: 0=update gain when gain register changes 1=updat e gain on 1 st zero cross after gain register write. input signal path 6 inppgamute 0 mute control for input pga: 0=input pga not muted, normal operation 1=input pga muted (and disconnected from the following input boost stage). input signal path 5:0 in ppgavol 010000 input pga volume 000000 = - 12db 000001 = - 11.25db . 010000 = 0db . 111111 = 35.25db input signal path 47 ( 2f h) 8 pgaboost 0 input boost 0 = pga output has +0db gain through input boost stage. 1 = pga output has +20db gain through input boo st stage. input signal path 7 0 reserved 6 :4 micp2boostvol 000 controls the micp pin to the input boost stage (nb, when using this path set micp2inppga=0): 000=path disabled (disconnected) 001= - 12db gain through boost stage 010= - 9db gain through boos t stage
WM8974 76 rev 4.7 register address bit label default description refer to 2:0 aux2boostvol 000 controls the auxiliary amplif i er to the input boost stage: 000=path disabled (disconnected) 001= - 12db gain through boost stage 010= - 9db gain through boost stage 111=+6db gain through boost stage input signal path 49 ( 31 h) 8 :4 00000 reserved 3 monoboost 0 mono output boost stage control (see table 37 for details) 0=no boost (output is inverting buffer) 1=1.5x gain boost analog ue outputs 2 spkboost 0 speaker output boost stage control (see table 37 for details) 0=no boost (outputs are inverting buffers) 1 = 1.5x gain boost analogue outputs 1 tsden 1 thermal shutdown enable 0 : thermal shutdown disab led 1 : thermal shutdown enabled output switch 0 vroi 0 vref (avdd/2 or 1.5xavdd/2) to analogue output resistance 0: approx 1k ? 1: approx 30 k ? analogue outputs 50 ( 32 h) 8 :6 000 reserved 5 aux2spk 0 output of auxiliary amplifier to speaker mixer inp ut 0 = not selected 1 = selected analogue outputs 4:2 000 reserved 1 byp2spk 0 bypass path (output of input boost stage) to speaker mixer input 0 = not selected 1 = selected analogue outputs 0 dac2spk 0 output of dac to speaker mixer input 0 = not selected 1 = selected analogue outputs 54 ( 36 h) 8 7 spkzc 0 speaker volume control zero cross enable: 1 = change gain on zero cross only 0 = change gain immediately analogue outputs 6 spkmute 0 speaker output mute enable 0=speaker output enabled 1 =speaker output muted (vmidop) analogue outputs 5:0 spkvol 111001 speaker volume adjust 111111 = +6db 111110 = +5db (1.0 db steps) 111001=0db 000000= - 57db analogue outputs 56 (38h) 8:7 0 reserved
WM8974 rev 4.7 77 register address bit label default description refer to 6 monomute 0 monoout mute control 0=no mute 1=ou tput muted. during mute the mono output will output vmid which can be used as a dc reference for a headphone out. analogue outputs 5:3 0 reserved 2 aux2mono 0 output of auxil i ary amplifier to mono mixer input: 0 = not selected 1 = selected analogue outputs 1 byp2mono 0 bypass path (output of input boost stage) to mono mixer input 0 = non selected 1 = selected analogue outputs 0 dac2mono 0 output of dac to mono mixer input 0 = not selected 1 = selected analogue outputs
WM8974 78 rev 4.7 digital filter chara cteris tics parameter test conditions min typ max unit adc filter passband +/ - 0.0 2 5db 0 0.4 54 fs - 6db 0.5fs passband ripple +/ - 0.0 2 5 db stopband 0.5 46 fs stopband attenuation f > 0.546 fs - 60 db group delay 21 /fs adc high - pass filter h igh - pass filter corner frequency - 3db 3.7 hz - 0.5db 10.4 - 0.1db 21.6 dac filter passband +/ - 0.03 5 db 0 0.454 fs - 6db 0.5fs passband ripple +/ - 0.03 5 db stopband 0.546 fs stopband attenuation f > 0.546 fs - 8 0 db group delay 2 9 /fs table 63 digital filter characteristics terminology 1. stop band attenuation (db) C the degree to which the frequency spectrum is attenuated (outside audio band) 2. pass - band ripple C any variation of the frequency response in th e pass - band region 3. note that this delay applies only to the filters and does not include additional delays through other digital circuits. see table 64 for the total delay. parameter test conditions min typ max unit adc path gro up delay total delay (adc analogue input to digital audio interface output) eq disabled 26/fs 28/fs 30/fs eq enabled 27/fs 29/fs 31/fs dac path group delay total delay (audio interface input to dac analogue output) eq disabled 34/fs 36/fs 38/fs e q enabled 35/fs 37/fs 39/fs table 64 total group delay notes: 1. wind noise filter is disabled.
WM8974 rev 4.7 79 dac filter responses figure 36 dac digital filter frequency response figure 37 dac digital filter ripple adc filter responses figure 38 adc digital filter frequency response figure 39 adc digital filter ripple -120 -100 -80 -60 -40 -20 0 0 0.5 1 1.5 2 2.5 3 frequency (fs) response (db) -0.2 -0.15 -0.1 -0.05 0 0.05 0.1 0.15 0.2 0 0.1 0.2 0.3 0.4 0.5 frequency (fs) response (db) -120 -100 -80 -60 -40 -20 0 0 0.5 1 1.5 2 2.5 3 frequency (fs) response (db) -0.2 -0.15 -0.1 -0.05 0 0.05 0.1 0.15 0.2 0 0.1 0.2 0.3 0.4 0.5 frequency (fs) response (db)
WM8974 80 rev 4.7 de - emphasis filter resp onses figure 40 de - emphasis frequency response (32khz) figure 41 de - emphasis error (32khz) figure 42 de - emphasis frequency response (44.1khz) figure 43 de - emphasis error (44. 1khz) figure 44 de - emphasis frequency response (48khz) figure 45 de - emphasis error (48khz) -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 0 0 2000 4000 6000 8000 10000 12000 14000 16000 frequency (hz) response (db) -0.15 -0.10 -0.05 0.00 0.05 0.10 0.15 0.20 0.25 0.30 0 2000 4000 6000 8000 10000 12000 14000 16000 frequency (hz) response (db) -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 0 0 5000 10000 15000 20000 frequency (hz) response (db) -0.20 -0.15 -0.10 -0.05 0.00 0.05 0.10 0 5000 10000 15000 20000 frequency (hz) response (db) -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 0 0 5000 10000 15000 20000 frequency (hz) response (db) -0.10 -0.08 -0.06 -0.04 -0.02 0.00 0.02 0.04 0.06 0.08 0.10 0 5000 10000 15000 20000 frequency (hz) response (db)
WM8974 rev 4.7 81 high - pass filter the WM8974 has a selectable digital high - pass filter in the adc filter path. this f ilter has two modes, audio and applications. in audio mode the filter is a 1 st order iir with a cut - off of around 3.7hz. in applications mode the filter is a 2 nd order high - pass filter with a selectable cut - off frequency. figure 46 adc high - pass filter response, hpfapp=0 figure 47 adc high - pass filter responses (48khz), hpfapp=1, all cut - off settings shown. figure 48 adc high - pass filter responses (24khz), hpfapp=1 , all cut - off settings shown. figure 49 adc high - pass filter responses (12khz), hpfapp=1, all cut - off settings shown. -40 -35 -30 -25 -20 -15 -10 -5 0 5 0 5 10 15 20 25 30 35 40 45 frequency (hz) response (db) -60 -50 -40 -30 -20 -10 0 10 0 200 400 600 800 1000 1200 frequency (hz) response (db) -80 -70 -60 -50 -40 -30 -20 -10 0 10 0 200 400 600 800 1000 1200 frequency (hz) response (db) -90 -80 -70 -60 -50 -40 -30 -20 -10 0 10 0 200 400 600 800 1000 1200 frequency (hz) response (db)
WM8974 82 rev 4.7 5 - band equaliser the WM8974 has a 5 - band equaliser which can be applied to either the adc path or the dac path . the plots from figure 50 to figure 63 show the frequency responses of each filter with a sampling frequency of 48khz, firstly showing the different cut - off/centre frequencies with a ga in of ? 12db, and secondly a sweep of the gain from - 12db to +12db for the lowest cut - off/centre frequency of each filter. figure 50 eq b and 1 C low frequency s helf f ilter c ut - offs figure 51 eq b and 1 C g ains for l owest c ut - off f requency figure 52 eq b and 2 C peak f ilter c entre f requencies , eq2bw=0 figure 53 eq b and 2 C peak f ilter g ains for l owest c ut - off f requency, eq2bw=0 figure 54 eq b and 2 C eq2bw=0, eq2bw=1 10 -1 10 0 10 1 10 2 10 3 10 4 10 5 -15 -10 -5 0 5 10 15 frequency (hz) magnitude (db) 10 -1 10 0 10 1 10 2 10 3 10 4 10 5 -15 -10 -5 0 5 10 15 frequency (hz) magnitude (db) 10 -1 10 0 10 1 10 2 10 3 10 4 10 5 -15 -10 -5 0 5 10 15 frequency (hz) magnitude (db) 10 -1 10 0 10 1 10 2 10 3 10 4 10 5 -15 -10 -5 0 5 10 15 frequency (hz) magnitude (db) 10 -2 10 -1 10 0 10 1 10 2 10 3 10 4 -15 -10 -5 0 5 10 15 frequency (hz) magnitude (db)
WM8974 rev 4.7 83 figure 55 eq b and 3 C peak f ilter c entre f requencies, eq3bw=0 figure 56 eq b and 3 C peak f ilter g ains for l owest c ut - off f requency, eq3bw=0 figure 57 eq b and 3 C eq3bw=0, eq3bw=1 10 -1 10 0 10 1 10 2 10 3 10 4 10 5 -15 -10 -5 0 5 10 15 frequency (hz) magnitude (db) 10 -1 10 0 10 1 10 2 10 3 10 4 10 5 -15 -10 -5 0 5 10 15 frequency (hz) magnitude (db) 10 -2 10 -1 10 0 10 1 10 2 10 3 10 4 -15 -10 -5 0 5 10 15 frequency (hz) magnitude (db)
WM8974 84 rev 4.7 figure 58 eq b and 4 C peak f ilter c entre f requencies, eq3bw=0 figure 59 eq b and 4 C peak f ilter g ains for l owest c ut - off f requency, eq4bw=0 figure 60 eq b and 4 C eq3bw=0, eq3bw=1 figure 61 eq b and 5 C high frequency s helf f ilter c ut - offs figure 62 eq b and 5 C g ains for l owest c ut - off f requency 10 -1 10 0 10 1 10 2 10 3 10 4 10 5 -15 -10 -5 0 5 10 15 frequency (hz) magnitude (db) 10 -1 10 0 10 1 10 2 10 3 10 4 10 5 -15 -10 -5 0 5 10 15 frequency (hz) magnitude (db) 10 -2 10 -1 10 0 10 1 10 2 10 3 10 4 -15 -10 -5 0 5 10 15 frequency (hz) magnitude (db) 10 -1 10 0 10 1 10 2 10 3 10 4 10 5 -15 -10 -5 0 5 10 15 frequency (hz) magnitude (db) 10 -1 10 0 10 1 10 2 10 3 10 4 10 5 -15 -10 -5 0 5 10 15 frequency (hz) magnitude (db)
WM8974 rev 4.7 85 figure 63 shows the result of having the gain set on more than one channel simultaneously. the blue traces show each band (lowest cut - off/centre frequency) with ? 12db gain. the red traces sho w the cumulative effect of all bands with +12db gain and all bands - 12db gain, wit h eqxbw=0 for the peak filters. figure 63 cumulative f requency b oost/ c ut 10 -1 10 0 10 1 10 2 10 3 10 4 10 5 -15 -10 -5 0 5 10 15 20 frequency (hz) magnitude (db)
WM8974 86 rev 4.7 a pplications informat ion recommended external components figure 64 recommended e xternal components
WM8974 rev 4.7 87 package diagram dm 102 . c fl : 24 pin qfn plastic package 4 x 4 x 0 . 9 mm body , 0 . 50 mm lead pitch index area ( d / 2 x e / 2 ) top view d e 4 notes : 1 . dimension b applies to metallized terminal and is measured between 0 . 15 mm and 0 . 30 mm from terminal tip . 2 . falls within jedec , mo - 220 , variation vggd - 8 . 3 . all dimensions are in millimetres . 4 . the terminal # 1 identifier and terminal numbering convention shall conform to jedec 95 - 1 spp - 002 . 5 . coplanarity applies to the exposed heat sink slug as well as the terminals . 6 . refer to applications note wan _ 0118 for further information regarding pcb footprints and qfn package soldering . 7 . this drawing is subject to change without notice . a 3 g t h w b exposed lead half etch tie bar dimensions ( mm ) symbols min nom max note a a 1 a 3 0 . 80 0 . 85 0 . 90 0 . 05 0 . 0 35 0 0 . 20 3 ref b d d 2 e e 2 e l 0 . 30 0 . 20 4 . 00 bsc 2 . 60 2 . 50 2 . 40 0 . 50 bsc 0 . 3 5 0 . 40 0 . 45 2 2 4 . 00 bsc 2 . 60 2 . 50 2 . 40 0 . 10 aaa bbb ccc ref : 0 . 1 0 0 . 10 jedec , mo - 220 , variation vggd - 8 . tolerances of form and position 0 . 25 h 0 . 1 0 0 . 2 0 g t 0 . 1 03 w 0 . 15 detail 1 detail 3 6 1 13 18 24 19 12 e d 2 b 7 1 b c bbb m a bottom view c aaa 2 x c aaa 2 x 1 c a 3 seating plane a 1 c 0 . 08 c ccc a 5 side view exposed ground paddle 6 detail 1 0 . 30 mm 45 exposed ground paddle e 2 see detail 2 l e datum detail 2 terminal tip e / 2 1 m m detail 3
WM8974 88 rev 4.7 important notice contacting cirrus logic support for all product questions and inquiries, contact a cirrus l ogic sales representative. to find one nearest you, go to www.cirrus.com. for the purposes of our terms and conditions of sale, "preliminary" or "advanced" datasheets are non - final datasheets that include but are no t limited to datasheets marked as target, advance, product preview, preliminary technical data and/or pre - production. products provided with any such datasheet are therefore subject to relevant terms and conditions associated with "preliminary" o r "advanced" designations. the products and services of cirrus logic international (uk) limited; cirrus logic, inc.; and other companies in the cirrus logic group (collectively either cirrus logic or cirrus) a re sold subject to cirrus logics terms and conditions of sale supplied at the time of order acknowledgment, including those pertaining to warranty, indemnification, and limitation of liability. software is provided pursuant to applicable license ter ms. cirrus logic reserves the right to make chang es to its products and specifications or to discontinue any product or service without notice. customers should therefore obtain the latest version of relevant information from cirrus logic to verify that the information is current and complete. testing an d other quality control techniques are utilized to the extent cirrus logic deems necessary. specific testing of all parameters of each device is not necessarily performed. in order to minimize risks associated with customer applications, the customer must use adequate design and operating safeguards to minimize inherent or procedural hazards. cirrus logic is not liable for applications assistance or customer product design. the customer is solely responsible for its selection and use of cirrus logic product s. use of cirrus logic products may entail a choice between many different modes of operation, some or all of which may require action by the user, and some or all of which may be optional. nothing in these materials should be interpreted as instructions o r suggestions to choose one mode over another. likewise, description of a single mode should not be interpreted as a suggestion that other modes should not be used or that they would not be suitable for operation. features and operations described herein a re for illustrative purposes only. certain applications using semiconductor products may involve potential risks of death, personal injury, or severe property or environmental damage (critical applications). cirrus logic products are not designed, author ized or warranted for use in products surgically implanted into the body, automotive safety or security devices, nuclear systems, life support products or other critical applications. inclusion of cirrus logic products in such applications is understood to be fully at the customers risk and cirrus logic disclaims and makes no warranty, express, statutory or implied, including the implied warranties of merchantability and fitness for particular purpose, with regard to any cirrus logic product that is used i n such a manner. if the customer or customers customer uses or permits the use of cirrus logic products in critical applications, customer agrees, by such use, to fully indemnify cirrus logic, its officers, directors, employees, distributors and other age nts from any and all liability, including attorneys fees and costs, that may result from or arise in connection with these uses. this document is the property of cirrus logic and by furnishing this information, cirrus logic grants no license, express or i mplied, under any patents, mask work rights, copyrights, trademarks, trade secrets or other intellectual property rights. any provision or publication of any third partys products or services does not constitute cirrus logics approval, license, warranty or endorsement thereof. cirrus logic gives consent for copies to be made of the information contained herein only for use within your organization with respect to cirrus logic integrated circuits or other products of cirrus logic, and only if the reproduct ion is without alteration and is accompanied by all associated copyright, proprietary and other notices and conditions (including this notice). this consent does not extend to other copying such as copying for general distribution, advertising or promotion al purposes, or for creating any work for resale. this document and its information is provided as is without warranty of any kind (express or implied). all statutory warranties and conditions are excluded to the fullest extent possible. no responsibilit y is assumed by cirrus logic for the use of information herein, including use of this information as the basis for manufacture or sale of any items, or for infringement of patents or other rights of third partie s. cirrus logic, cirrus, the cirrus logic log o design, and soundclear are among the trademarks of cirrus logic. other brand and product names may be trademarks or service marks of their respective owners. copyright ? 2004 C 2016 cirrus logic, inc. all rights reserved.
WM8974 rev 4.7 89 revision history date rev origin ator changes 26/09/11 4.6 jmacd order codes changed from WM8974gefl/v and WM8974gefl/rv to WM8974 c gefl/v and WM8974 c gefl/rv to reflect change to copper wire bonding. 26/09/11 4.6 jmacd package diagram updated to dm102. c 1 2 /08/16 4. 7 ph micbias voltage ( mbvsel=1) updated to 0.75 x avdd.


▲Up To Search▲   

 
Price & Availability of WM8974

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X